Re: [Rails-core] [ActiveSupport] feature proposal: Create #unfreeze_time to complement #freeze_time in ActiveSupport::Testing::TimeHelpers

2018-09-02 Thread Xavier Noria
How would that method differ from the existing `travel_back`? If there is a difference, which would be a use case? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an

[Rails-core] [ActiveSupport] feature proposal: Create #unfreeze_time to complement #freeze_time in ActiveSupport::Testing::TimeHelpers

2018-09-01 Thread 'Ryan' via Ruby on Rails: Core
ActiveSupport::Testing::TimeHelpers has a method called #freeze_time. It could help users if there was a complementary method called #unfreeze_time This could mean that a developer could write a test that would stub time at Time.now using #freeze_time, then could call #unfreeze_time when they