Skip to content

Commit

Permalink
Revert "Ensure the block called to Factory#run is actually called"
Browse files Browse the repository at this point in the history
This reverts commit 4ede9f1.
  • Loading branch information
joshuaclayton committed Oct 27, 2011
1 parent 4ede9f1 commit 73b9e41
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions spec/factory_girl/factory_spec.rb
Expand Up @@ -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

0 comments on commit 73b9e41

Please sign in to comment.