Ruby on Rails
Tuesday, February 17, 2015
Hi!
I've already set the rails_helper.rb with:
Does anyone know what's going on?
-- 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) end endI've already set the rails_helper.rb with:
RSpec.configure do |config| ... config.include ActiveSupport::Testing::TimeHelpersendDoes anyone know what's going on?
Thanks.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cedb8554-6b45-48cd-977a-7dfd8326a648%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment