Permalink
Browse files

Move Timecop.return to global after

  • Loading branch information...
1 parent 71435ee commit 3a8307abbe8d978f7592d07a450bf360e85f00ae @joshuaclayton joshuaclayton committed Jun 22, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −2 spec/acceptance/build_stubbed_spec.rb
  2. +0 −1 spec/factory_girl/strategy/stub_spec.rb
  3. +1 −0 spec/spec_helper.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
@@ -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
@@ -20,6 +20,7 @@
config.include DeclarationMatchers
config.after do
+ Timecop.return
FactoryGirl.reload
end
end

0 comments on commit 3a8307a

Please sign in to comment.