crb icon indicating copy to clipboard operation
crb copied to clipboard

it should execute steps

Open patrickhno opened this issue 14 years ago • 2 comments

ruby-1.9.2-p290 :001 > Then 'I go to the main page'
NoMethodError: undefined method `source_tag_names' for #<Cucumber::Rails::World:0xafa9a4c>
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.5/lib/action_dispatch/testing/assertions/routing.rb:175:in `method_missing'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.0.5/lib/action_dispatch/testing/integration.rb:372:in `method_missing'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/rspec-expectations-2.7.0/lib/rspec/matchers/method_missing.rb:9:in `method_missing'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/pickle-0.4.10/lib/pickle/session.rb:158:in `method_missing_with_pickle_parser'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/capybara-1.1.1/lib/capybara/cucumber.rb:18:in `block in <top (required)>'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:53:in `instance_eval'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:53:in `block in fire_hook'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:50:in `each'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:50:in `fire_hook'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:27:in `before'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:40:in `Given'
        from (irb):1:in `block in <main>'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/workspace.rb:80:in `eval'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/workspace.rb:80:in `evaluate'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/context.rb:254:in `evaluate'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb.rb:159:in `block (2 levels) in eval_input'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb.rb:273:in `signal_status'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb.rb:156:in `block in eval_input'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/ruby-lex.rb:243:in `block (2 levels) in each_top_l                              evel_statement'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `loop'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in `block in each_top_level_statem                              ent'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `catch'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/ruby-lex.rb:228:in `each_top_level_statement'
        from /home/pathan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb.rb:155:in `eval_input'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:111:in `block in execute!'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:110:in `catch'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/lib/crb.rb:110:in `execute!'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.1.1/lib/cucumber/cli/main.rb:20:in `execute'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/gems/crb-1.0.1/bin/crb:6:in `<top (required)>'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/bin/crb:19:in `load'
        from /home/pathan/.rvm/gems/ruby-1.9.2-p290/bin/crb:19:in `<main>'ruby-1.9.2-p290 :002 >

patrickhno avatar Oct 31 '11 11:10 patrickhno

May be a duplicate of #5

patrickhno avatar Nov 02 '11 07:11 patrickhno

What is required here is a dummy scenario that executes Before hooks.

patrickhno avatar Nov 02 '11 08:11 patrickhno