Permalink
Browse files

version 0.15.1. fixed bug in passing blk via with_factory_options.

  • Loading branch information...
1 parent 2a5394c commit 87fa76eb87d2be00748049a7b56de1a826dfa6b1 @garysweaver committed Dec 6, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/stepford/factory_girl/methods.rb
  2. +1 −1 lib/stepford/version.rb
@@ -89,7 +89,7 @@ def handle_factory_girl_method(m, *args, &block)
if orig_method_args_and_options
method_args_and_options = orig_method_args_and_options.dup
method_options = args.last
- blk = method_options.is_a?(Hash) ? method_args_and_options.delete(:blk) : nil
+ blk = method_options.is_a?(Hash) ? method_options.delete(:blk) : nil
begin
if blk
options[assc_sym] = ::FactoryGirl.__send__(*method_args_and_options, &blk)
@@ -1,3 +1,3 @@
module Stepford
- VERSION = '0.15.0'
+ VERSION = '0.15.1'
end

0 comments on commit 87fa76e

Please sign in to comment.