mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
![]() 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 |
||
---|---|---|
.. | ||
activesupport_instrumentation_spec.rb | ||
aliases_spec.rb | ||
attribute_aliases_spec.rb | ||
attribute_existing_on_object_spec.rb | ||
attributes_for_spec.rb | ||
attributes_from_instance_spec.rb | ||
attributes_ordered_spec.rb | ||
build_list_spec.rb | ||
build_spec.rb | ||
build_stubbed_spec.rb | ||
callbacks_spec.rb | ||
create_list_spec.rb | ||
create_spec.rb | ||
define_child_before_parent_spec.rb | ||
defining_methods_inside_a_factory_spec.rb | ||
definition_spec.rb | ||
definition_without_block_spec.rb | ||
global_initialize_with_spec.rb | ||
global_to_create_spec.rb | ||
initialize_with_spec.rb | ||
keyed_by_class_spec.rb | ||
modify_factories_spec.rb | ||
modify_inherited_spec.rb | ||
nested_attributes_spec.rb | ||
overrides_spec.rb | ||
parent_spec.rb | ||
register_strategies_spec.rb | ||
sequence_context_spec.rb | ||
sequence_spec.rb | ||
skip_create_spec.rb | ||
stub_spec.rb | ||
syntax_methods_within_dynamic_attributes_spec.rb | ||
traits_spec.rb | ||
transient_attributes_spec.rb |