Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created July 13, 2010 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfirebaugh/473277 to your computer and use it in GitHub Desktop.
Save jfirebaugh/473277 to your computer and use it in GitHub Desktop.
undefined method `add_examples' for #<Cucumber::Ast::Scenario:0x8a6465> (NoMethodError)
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/parser/gherkin_builder.rb:82:in `examples'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:143:in `replay_events!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:142:in `each'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:142:in `replay_events!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:131:in `replay!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/filter_formatter.rb:40:in `scenario'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/gherkin-2.1.1-java/lib/gherkin/formatter/tag_count_formatter.rb:17:in `scenario'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/feature_file.rb:36:in `parse'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/step_mother.rb:69:in `load_plain_text_features'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/step_mother.rb:67:in `each'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/step_mother.rb:67:in `load_plain_text_features'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/cli/main.rb:55:in `execute!'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/../lib/cucumber/cli/main.rb:25:in `execute'
C:/Documents and Settings/hudson/.bundle/jruby/1.8/gems/cucumber-0.8.4/bin/cucumber:8
Feature:
@wip
Scenario Outline:
When blah
Examples:
| a |
| b |
| c |
Scenario:
When blah
@aslakhellesoy
Copy link

That's no good! Probably due to some of the new internals of gherkin. Can you share the feature and command line options you used?

@ramonrails
Copy link

  • an existing project broke for me with this same error, after I upgraded my gems today.
  • uninstalled gherkin 2.1.2, cucumber 0.8.4
  • autospec works just fine again (no changes to steps or features)
  • if it helps, I am using features, background, outlines, text blocks, almost everything cucumber provides

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment