diff --git a/spec/acceptance/build_stubbed_spec.rb b/spec/acceptance/build_stubbed_spec.rb index 81544df..7daa327 100644 --- a/spec/acceptance/build_stubbed_spec.rb +++ b/spec/acceptance/build_stubbed_spec.rb @@ -118,8 +118,6 @@ describe "defaulting `created_at`" do 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 diff --git a/spec/factory_girl/strategy/stub_spec.rb b/spec/factory_girl/strategy/stub_spec.rb index 65568a8..ec0bd7a 100644 --- a/spec/factory_girl/strategy/stub_spec.rb +++ b/spec/factory_girl/strategy/stub_spec.rb @@ -7,7 +7,6 @@ describe FactoryGirl::Strategy::Stub do 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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 3093696..d719e32 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -20,6 +20,7 @@ RSpec.configure do |config| config.include DeclarationMatchers config.after do + Timecop.return FactoryGirl.reload end end