Permalink
Browse files

Fix block in spec

  • Loading branch information...
1 parent 0c31b6e commit c93dea5ad637260ae769489f27e1f96f04b28e1a @joshuaclayton joshuaclayton committed Nov 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/factory_girl/proxy/create_spec.rb
View
2 spec/factory_girl/proxy/create_spec.rb
@@ -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

0 comments on commit c93dea5

Please sign in to comment.