Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Problem with cucumber steps from factory girl

View cucumber backtrace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
Lecture(#56834100) expected, got Lecture(#30902240) (ActiveRecord::AssociationTypeMismatch)
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activerecord-3.1.0/lib/active_record/associations/association.rb:205:in `raise_on_type_mismatch'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activerecord-3.1.0/lib/active_record/associations/belongs_to_association.rb:6:in `replace'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activerecord-3.1.0/lib/active_record/associations/singular_association.rb:17:in `writer'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activerecord-3.1.0/lib/active_record/associations/builder/association.rb:49:in `block in define_writers'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/proxy/build.rb:21:in `set'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/factory.rb:112:in `block (2 levels) in run'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/factory.rb:112:in `each'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/factory.rb:112:in `block in run'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/factory.rb:107:in `each'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/factory.rb:107:in `run'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/syntax/methods.rb:54:in `create'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/step_definitions.rb:102:in `block (4 levels) in <top (required)>'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/step_definitions.rb:100:in `each'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/factory_girl-2.1.0/lib/factory_girl/step_definitions.rb:100:in `block (3 levels) in <top (required)>'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/core_ext/instance_exec.rb:48:in `instance_exec'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/core_ext/instance_exec.rb:48:in `block in cucumber_instance_exec'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/core_ext/instance_exec.rb:69:in `cucumber_run_with_backtrace_filtering'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/core_ext/instance_exec.rb:36:in `cucumber_instance_exec'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/rb_support/rb_step_definition.rb:62:in `invoke'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/step_match.rb:26:in `invoke'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/step_invocation.rb:59:in `invoke'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/step_invocation.rb:38:in `accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:99:in `block in visit_step'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:98:in `visit_step'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/step_collection.rb:15:in `block in accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/step_collection.rb:14:in `each'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/step_collection.rb:14:in `accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:93:in `block in visit_steps'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:92:in `visit_steps'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/background.rb:41:in `block in accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/background.rb:52:in `block in with_visitor'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/scenario.rb:108:in `with_visitor'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/background.rb:51:in `with_visitor'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/background.rb:38:in `accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:57:in `block in visit_background'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:56:in `visit_background'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/feature.rb:41:in `accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:20:in `block in visit_feature'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:19:in `visit_feature'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/features.rb:29:in `block in accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/features.rb:17:in `each'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/features.rb:17:in `each'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/features.rb:28:in `accept'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:14:in `block in visit_features'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:163:in `broadcast'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/ast/tree_walker.rb:13:in `visit_features'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/runtime.rb:45:in `run!'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-1.0.2/lib/cucumber/cli/main.rb:43:in `execute!'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/test_framework/cucumber.rb:24:in `run_tests'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:13:in `block in run'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/forker.rb:21:in `block in initialize'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/forker.rb:18:in `fork'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/forker.rb:18:in `initialize'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:9:in `new'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/run_strategy/forking.rb:9:in `run'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/spork-0.9.0.rc9/lib/spork/server.rb:48:in `run'
/home/nils/.rvm/rubies/ruby-1.9.2-p290-patched/lib/ruby/1.9.1/drb/drb.rb:1558:in `perform_without_block'
/home/nils/.rvm/rubies/ruby-1.9.2-p290-patched/lib/ruby/1.9.1/drb/drb.rb:1518:in `perform'
/home/nils/.rvm/rubies/ruby-1.9.2-p290-patched/lib/ruby/1.9.1/drb/drb.rb:1592:in `block (2 levels) in main_loop'
/home/nils/.rvm/rubies/ruby-1.9.2-p290-patched/lib/ruby/1.9.1/drb/drb.rb:1588:in `loop'
/home/nils/.rvm/rubies/ruby-1.9.2-p290-patched/lib/ruby/1.9.1/drb/drb.rb:1588:in `block in main_loop'
View cucumber backtrace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
--- config/application.rb ---
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
config/environment.rb:3:in `<top (required)>'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:5:in `<top (required)>'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
/home/nils/.rvm/gems/ruby-1.9.2-p290-patched@ba/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require'
features/support/env.rb:8:in `<top (required)>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.