Skip to content

Commit

Permalink
Fix block in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Nov 23, 2011
1 parent 0c31b6e commit c93dea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/factory_girl/proxy/create_spec.rb
Expand Up @@ -18,7 +18,7 @@

it "runs a custom create block" do
block_run = false
block = lambda { block_run = true }
block = lambda {|instance| block_run = true }
subject.result(block)
instance.should have_received(:save!).never
block_run.should be_true
Expand Down

0 comments on commit c93dea5

Please sign in to comment.