Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move Timecop.return to global after

  • Loading branch information...
commit 3a8307abbe8d978f7592d07a450bf360e85f00ae 1 parent 71435ee
@joshuaclayton joshuaclayton authored
View
2  spec/acceptance/build_stubbed_spec.rb
@@ -118,8 +118,6 @@
Timecop.freeze Time.now
end
- after { Timecop.return }
-
it "defaults created_at for objects with created_at" do
build_stubbed(:thing_with_timestamp).created_at.should == Time.now
end
View
1  spec/factory_girl/strategy/stub_spec.rb
@@ -7,7 +7,6 @@
context "asking for a result" do
before { Timecop.freeze(Time.now) }
- after { Timecop.return }
let(:result_instance) do
define_class("ResultInstance") do
attr_accessor :id
View
1  spec/spec_helper.rb
@@ -20,6 +20,7 @@
config.include DeclarationMatchers
config.after do
+ Timecop.return
FactoryGirl.reload
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.