From 73b9e4196a96ab1181060b4428bdd45214e8b20f Mon Sep 17 00:00:00 2001 From: Joshua Clayton Date: Wed, 26 Oct 2011 23:47:20 -0400 Subject: [PATCH] Revert "Ensure the block called to Factory#run is actually called" This reverts commit 4ede9f1b1b8f44439d61aa99eee3587727779577. --- spec/factory_girl/factory_spec.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/spec/factory_girl/factory_spec.rb b/spec/factory_girl/factory_spec.rb index 8be5900b6..c19184768 100644 --- a/spec/factory_girl/factory_spec.rb +++ b/spec/factory_girl/factory_spec.rb @@ -272,12 +272,4 @@ subject.run(FactoryGirl::Proxy::Build, { :name => "John Doe" }) proxy.should have_received(:set).once end - - it "calls the block and returns the result" do - block = proc { nil } - block.stubs(:call => "block result") - - subject.run(FactoryGirl::Proxy::Build, { }, &block).should == "block result" - block.should have_received(:call).once - end end