Skip to content

Instantly share code, notes, and snippets.

@wingrunr21
Created September 27, 2012 17:13
Show Gist options
  • Save wingrunr21/3795200 to your computer and use it in GitHub Desktop.
Save wingrunr21/3795200 to your computer and use it in GitHub Desktop.
Backtrace for factory_girl issue #440
undefined method `name' for "":String
@ vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/declaration/implicit.rb:11:in `=='
vendor/bundle/ruby/1.9.1/gems/activerecord-oracle_enhanced-adapter-1.4.1/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb:20:in `field_changed?'
vendor/bundle/ruby/1.9.1/gems/activerecord-3.0.17/lib/active_record/attribute_methods/dirty.rb:57:in `write_attribute'
vendor/bundle/ruby/1.9.1/gems/activerecord-3.0.17/lib/active_record/attribute_methods/write.rb:14:in `product_id='
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:16:in `block (2 levels) in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `each'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `block in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `tap'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluation.rb:12:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy/build.rb:9:in `result'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory.rb:42:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:23:in `block in run'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/notifications.rb:54:in `instrument'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:22:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy/create.rb:5:in `association'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:30:in `association'
test/factories/product_factory.rb:130:in `block (3 levels) in <top (required)>'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute/dynamic.rb:14:in `call'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute/dynamic.rb:14:in `block in to_proc'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:62:in `instance_exec'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:62:in `block in define_attribute'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:56:in `get'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:16:in `block (2 levels) in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `each'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `block in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `tap'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluation.rb:12:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy/create.rb:9:in `result'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory.rb:42:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:23:in `block in run'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/notifications.rb:54:in `instrument'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:22:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy/create.rb:5:in `association'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:30:in `association'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute/association.rb:19:in `block in to_proc'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:62:in `instance_exec'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:62:in `block in define_attribute'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:56:in `get'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:16:in `block (2 levels) in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `each'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `block in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `tap'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluation.rb:12:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy/create.rb:9:in `result'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory.rb:42:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:23:in `block in run'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/notifications.rb:54:in `instrument'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:22:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy/create.rb:5:in `association'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:30:in `association'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute/association.rb:19:in `block in to_proc'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:62:in `instance_exec'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluator.rb:62:in `block in define_attribute'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:56:in `get'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:16:in `block (2 levels) in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `each'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:15:in `block in object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `tap'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/attribute_assigner.rb:14:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/evaluation.rb:12:in `object'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy/create.rb:9:in `result'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory.rb:42:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:23:in `block in run'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/notifications.rb:54:in `instrument'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/factory_runner.rb:22:in `run'
vendor/bundle/ruby/1.9.1/gems/factory_girl-4.1.0/lib/factory_girl/strategy_syntax_method_registrar.rb:19:in `block in define_singular_strategy_method'
test/functional/signup_sheets_controller_test.rb:168:in `block (3 levels) in <class:SignupSheetsControllerTest>'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:416:in `call'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:416:in `block in run_current_setup_blocks'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:415:in `each'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:415:in `run_current_setup_blocks'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:407:in `run_all_setup_blocks'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:411:in `run_parent_setup_blocks'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:406:in `run_all_setup_blocks'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:411:in `run_parent_setup_blocks'
vendor/bundle/ruby/1.9.1/gems/shoulda-context-1.0.0/lib/shoulda/context/context.rb:395:in `block in create_test_from_should_hash'
vendor/bundle/ruby/1.9.1/gems/mocha-0.12.4/lib/mocha/integration/mini_test/version_340.rb:32:in `run'
vendor/bundle/ruby/1.9.1/gems/mynyml-redgreen-0.7.1/lib/redgreen/minitest.rb:3:in `new_run'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/testing/setup_and_teardown.rb:35:in `block in run'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/callbacks.rb:444:in `_run_setup_callbacks'
vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.17/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
vendor/bundle/ruby/1.9.1/gems/turn-0.9.6/lib/turn/runners/minirunner.rb:91:in `block in _run_suite'
vendor/bundle/ruby/1.9.1/gems/turn-0.9.6/lib/turn/runners/minirunner.rb:84:in `map'
vendor/bundle/ruby/1.9.1/gems/turn-0.9.6/lib/turn/runners/minirunner.rb:84:in `_run_suite'
vendor/bundle/ruby/1.9.1/gems/turn-0.9.6/lib/turn/runners/minirunner.rb:61:in `block in _run_suites'
vendor/bundle/ruby/1.9.1/gems/turn-0.9.6/lib/turn/runners/minirunner.rb:61:in `map'
vendor/bundle/ruby/1.9.1/gems/turn-0.9.6/lib/turn/runners/minirunner.rb:61:in `_run_suites'
vendor/bundle/ruby/1.9.1/gems/minitest-3.4.0/lib/minitest/unit.rb:782:in `_run_anything'
vendor/bundle/ruby/1.9.1/gems/minitest-3.4.0/lib/minitest/unit.rb:971:in `run_tests'
vendor/bundle/ruby/1.9.1/gems/minitest-3.4.0/lib/minitest/unit.rb:958:in `block in _run'
vendor/bundle/ruby/1.9.1/gems/minitest-3.4.0/lib/minitest/unit.rb:957:in `each'
vendor/bundle/ruby/1.9.1/gems/minitest-3.4.0/lib/minitest/unit.rb:957:in `_run'
vendor/bundle/ruby/1.9.1/gems/minitest-3.4.0/lib/minitest/unit.rb:946:in `run'
vendor/bundle/ruby/1.9.1/gems/mynyml-redgreen-0.7.1/lib/redgreen/minitest.rb:13:in `new_run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment