SwitchUp SwitchUp Ranked Best Coding Bootcamps 2025

How to test specs with Time.now in Rspec

Altcademy Team wrote on 7 February 2018

Use timecop gem!
Or...Rail's default TimeHelper

Trusted by

Students and instructors from world-class organizations

Join the upcoming Cohort #120

Enroll for December 7th, 2026