How we migrated from Timecop to built-in Rails 5.2 time helpers
12-Mar-2020 1609
Sooner or later each of us encounters a situation where a method depends on time. The feature needs to be tested later on. Among Rubyists, the most popular gem which provides handy helpers to this problem is called timecop:A gem providing “time travel”, “time freezing”, and “time acceleration” capabilities, making it simple to test time-dependent code. It provides a unified method to mock Time.now, Date.today, and DateTime.now in a single call.
How we migrated from Timecop to built-in Rails 5.2 time helpers #ruby #rubydeveloper #rubyonrails #migrated #Timecop #built-in #Rails #helpers https://rubyonrails.ba/link/how-we-migrated-from-timecop-to-built-in-rails-5-2-time-helpers