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/lib/factory_girl
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
..
attribute Use instance_exec passing self as an argument for dynamic attributes 2013-06-07 10:42:50 -04:00
declaration Improve ability to define associations with traits and add documentation 2012-08-02 10:19:17 -04:00
decorator Prep for FactoryGirl 4.0 2012-08-02 11:17:39 -04:00
strategy Match build_stubbed's created_at type to ActiveRecord 2012-12-21 13:09:32 -08:00
syntax Add global callbacks 2013-02-08 11:24:35 -05:00
aliases.rb Cleanup 2012-05-05 02:59:13 -04:00
attribute.rb Extract logic for checking attribute declaration syntax to separate class 2012-05-05 20:08:29 -04:00
attribute_assigner.rb Prep for FactoryGirl 4.0 2012-08-02 11:17:39 -04:00
attribute_list.rb Clean up documentation 2012-05-05 02:31:31 -04:00
callback.rb Allow use of Symbol#to_proc in FactoryGirl callbacks 2013-04-05 10:14:29 -04:00
callbacks_observer.rb Clean up documentation 2012-05-05 02:31:31 -04:00
configuration.rb Add global callbacks 2013-02-08 11:24:35 -05:00
declaration.rb Clean up documentation 2012-05-05 02:31:31 -04:00
declaration_list.rb Ensure that callbacks are triggered once for implicit traits 2012-06-19 22:25:46 -04:00
decorator.rb Fix namespace issues in 1.9.2 2012-06-08 12:17:21 -04:00
definition.rb Add global callbacks 2013-02-08 11:24:35 -05:00
definition_hierarchy.rb Add global callbacks 2013-02-08 11:24:35 -05:00
definition_proxy.rb Raise if a method is defined with a FactoryGirl block (factory or trait) 2013-04-26 16:10:19 -04:00
errors.rb Raise if a method is defined with a FactoryGirl block (factory or trait) 2013-04-26 16:10:19 -04:00
evaluation.rb Allow to_create defined for all factories 2012-05-12 18:10:02 -04:00
evaluator.rb Fix warnings 2013-01-18 13:58:14 -05:00
evaluator_class_definer.rb Clean up documentation 2012-05-05 02:31:31 -04:00
factory.rb Simplify #build_hierarchy 2012-09-14 08:22:28 -04:00
factory_runner.rb Style cleanup 2012-05-05 01:14:21 -04:00
find_definitions.rb Clean up documentation 2012-05-05 02:31:31 -04:00
null_factory.rb Add DefinitionHierarchy to handle inheritance of some definition attributes 2012-07-11 23:05:16 -04:00
null_object.rb Add respond_to_missing? on NullObject for 1.9 compatability 2012-07-27 10:14:57 -04:00
registry.rb Support refering to factory based on class name 2012-06-08 23:54:22 -04:00
reload.rb Styles 2012-05-12 19:05:25 -04:00
sequence.rb Evaluate sequences within the context of the Evaluator when possible 2013-01-18 09:33:54 -05:00
strategy_calculator.rb Clean up documentation 2012-05-05 02:31:31 -04:00
strategy_syntax_method_registrar.rb Modified define_list_strategy_method to accept and use a block. 2012-10-22 08:15:47 -04:00
syntax.rb Prep for FactoryGirl 4.0 2012-08-02 11:17:39 -04:00
syntax_runner.rb Clean up documentation 2012-05-05 02:31:31 -04:00
trait.rb Fix initialize_with in the context of traits 2012-05-11 12:00:03 -04:00
version.rb Bump version to 4.2.0 2013-01-18 16:13:08 -05:00