3/31/2023 0 Comments Timecop rubyTo learn from our own mistakes, along the way we decided to unify our approach to time across all the test files. To provide an example, let’s update the Building#clock? test: include ActiveSupport::Testing::TimeHelpers inside spec/rails_helpers.rb file:Ĭonfig.include ActiveSupport::Testing::TimeHelpers. To have the method available across tests files you need to include it, e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |