mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
e9c23dc817
Calling `block.call(self)` means any implied scope of block evaluation goes out the window when an arity of 1 is used. This change uses `instance_exec`, passing along self as the argument for the block variable, meaning that the block is still invoked within the context of the FactoryGirl::Evaluator while allowing the variable to have access to the evaluator. Closes #529 |
||
---|---|---|
.. | ||
association.rb | ||
dynamic.rb | ||
sequence.rb | ||
static.rb |