I have two projects running Rails 4.2 and using travel_to from ActiveSupport::Testing::TimeHelpers.
In one project everything is working perfectly. But in the second one, my specs are running with the current date/time instead of using travel_to. Here is one example:
it “is only a travel_to test” do
travel_to Time.new(2012, 1, 1, 1, 1, 1) do
expect(Time.new).to eq Time.new(2012, 1, 1, 1, 1, 1)
I’ve already set the rails_helper.rb with:
RSpec.configure do |config|
Does anyone know what’s going on?