thoughtbot--factory_bot/spec/acceptance
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
..
activesupport_instrumentation_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
aliases_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
attribute_aliases_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
attribute_existing_on_object_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
attributes_for_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
attributes_from_instance_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
attributes_ordered_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
build_list_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
build_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
build_stubbed_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
callbacks_spec.rb Allow use of Symbol#to_proc in FactoryGirl callbacks 2013-04-05 10:14:29 -04:00
create_list_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
create_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
define_child_before_parent_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
defining_methods_inside_a_factory_spec.rb Raise if a method is defined with a FactoryGirl block (factory or trait) 2013-04-26 16:10:19 -04:00
definition_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
definition_without_block_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
global_initialize_with_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
global_to_create_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
initialize_with_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
keyed_by_class_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
modify_factories_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
modify_inherited_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
nested_attributes_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
overrides_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
parent_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
register_strategies_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
sequence_context_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
sequence_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
skip_create_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
stub_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
syntax_methods_within_dynamic_attributes_spec.rb Use instance_exec passing self as an argument for dynamic attributes 2013-06-07 10:42:50 -04:00
traits_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00
transient_attributes_spec.rb Convert to expect syntax 2013-01-18 13:58:36 -05:00