1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/spec
Joshua Clayton e9c23dc817 Use instance_exec passing self as an argument for dynamic attributes
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
2013-06-07 10:42:50 -04:00
..
acceptance Use instance_exec passing self as an argument for dynamic attributes 2013-06-07 10:42:50 -04:00
factory_girl Convert to expect syntax 2013-01-18 13:58:36 -05:00
support Convert to expect syntax 2013-01-18 13:58:36 -05:00
factory_girl_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
spec_helper.rb Update mocha version dependency and require mocha/api 2013-01-18 10:19:00 -05:00