Forum: RSpec [cucumber, jruby] Same steps are being added multiple times?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
John G. (Guest)
on 2009-04-20 22:41
(Received via mailing list)
Aslak,

I just ran the simple examples in your latest version of cucumber_java,
and
it exposes the ambiguous steps problem that I'm seeing.
Before I could get it to run, I had to make four changes to the
cucumber-maven project.  The class CucumberMojo has Java 6'isms in
it and the client I'm working with is still on Java 5.  Specifically:

1. I had to replace calls to String.isEmpty() to use the length() method
instead.
2. I had to remove the @override annotation on the execute() method (the
interface never had this method?)

Once I did that, then I cleaned my local maven repository, did a "mvn
clean
package install" in the cucumber_java
root directory then went down into the examples/simple directory and did
a
"mvn clean package".

Then when I went to run the simple tests in
cucumber_java/examples/simple
using the command:

        jruby -S cucumber features

I see the ambiguous steps definition error again, but I'm also seeing
argument type mismatch in StepDefinitionExtras...
Attached below is the dump of my test run.  Hope this helps.

thanks in advance,

--
John G.                 RADSoft / Better Software Faster
removed_email_address@domain.invalid            Lean/Agile/XP/Scrum Coaching and
Training
http://www.radsoft.com          Ruby on Rails and Java Solutions

---------------------------------------------- TEST RUN RESULTS BELOW
---------------------------------------------------------------------

pcp072050pcs:simple jgoodsen8440$ jruby -S cucumber --guess features
Feature: Simple

  Scenario: 3 cukes                  # features/demo.feature:3
    Given I have 3 green cukes       # public void
simple.StuffSteps.iHaveNCukes(int,java.lang.String)
      java.lang.IllegalArgumentException: argument type mismatch
(Cucumber::PureJava::StepDefinitionExtras::JavaException)
      cucumber/internal/StepDefinition.java:33:in `invokeOnTarget'
      cucumber/internal/StepDefinition.java:28:in `invokeOnTarget'
      features/demo.feature:4:in `Given I have 3 green cukes'
    When I add a table               # public void
simple.StuffSteps.iAddATable(cucumber.Table)
      | a | b |
      | 1 | 2 |
    Then I should have 3 green cukes # public void
simple.StuffSteps.iShouldHaveNCukes(int,java.lang.String)

  Scenario: 4 cukes                  # features/demo.feature:10
    Given I have 4 green cukes       # features/demo.feature:11
      Ambiguous match of "I have 4 green cukes":

      public void simple.StuffSteps.iHaveNCukes(int,java.lang.String):in
`/I
have (\d+) (.*) cukes/'
      public void simple.StuffSteps.iHaveNCukes(int,java.lang.String):in
`/I
have (\d+) (.*) cukes/'

       (Cucumber::Ambiguous)

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:122:in
`step_match'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:50:in
`find_step_match!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:27:in
`invoke'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:22:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:93:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:119:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:14:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:89:in
`visit_steps'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:40:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:152:in
`before_and_after'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:39:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:64:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:78:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:24:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:42:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:40:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:21:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:38:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:25:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:9:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`map'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:41:in
`execute!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:20:in
`execute'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:6

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:19:in
`load'
      /Users/jgoodsen8440/Applications/Java/jruby-1.2.0/bin/cucumber:19
      features/demo.feature:11:in `Given I have 4 green cukes'
    When I add a table               # features/demo.feature:12
      | a | b |
      | 1 | 2 |
      Ambiguous match of "I add a table":

      public void simple.StuffSteps.iAddATable(cucumber.Table):in `/I
add a
table/'
      public void simple.StuffSteps.iAddATable(cucumber.Table):in `/I
add a
table/'

       (Cucumber::Ambiguous)

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:122:in
`step_match'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:50:in
`find_step_match!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:27:in
`invoke'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:22:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:93:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:119:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:14:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:89:in
`visit_steps'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:40:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:152:in
`before_and_after'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:39:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:64:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:78:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:24:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:42:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:40:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:21:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:38:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:25:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:9:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`map'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:41:in
`execute!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:20:in
`execute'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:6

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:19:in
`load'
      /Users/jgoodsen8440/Applications/Java/jruby-1.2.0/bin/cucumber:19
      features/demo.feature:12:in `When I add a table'
    Then I should have 4 green cukes # features/demo.feature:15
      Ambiguous match of "I should have 4 green cukes":

      public void
simple.StuffSteps.iShouldHaveNCukes(int,java.lang.String):in `/I should
have
(\d+) (.*) cukes/'
      public void
simple.StuffSteps.iShouldHaveNCukes(int,java.lang.String):in `/I should
have
(\d+) (.*) cukes/'

       (Cucumber::Ambiguous)

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:122:in
`step_match'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:50:in
`find_step_match!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:27:in
`invoke'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:22:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:93:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:119:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:14:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:89:in
`visit_steps'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:40:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:152:in
`before_and_after'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:39:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:64:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:78:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:24:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:42:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:40:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:21:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:38:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:25:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:9:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`map'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:41:in
`execute!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:20:in
`execute'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:6

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:19:in
`load'
      /Users/jgoodsen8440/Applications/Java/jruby-1.2.0/bin/cucumber:19
      features/demo.feature:15:in `Then I should have 4 green cukes'

  Scenario: 99 cukes            # features/demo.feature:17
    Given I have 99 green cukes # features/demo.feature:18
      Ambiguous match of "I have 99 green cukes":

      public void simple.StuffSteps.iHaveNCukes(int,java.lang.String):in
`/I
have (\d+) (.*) cukes/'
      public void simple.StuffSteps.iHaveNCukes(int,java.lang.String):in
`/I
have (\d+) (.*) cukes/'
      public void simple.StuffSteps.iHaveNCukes(int,java.lang.String):in
`/I
have (\d+) (.*) cukes/'

       (Cucumber::Ambiguous)

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:122:in
`step_match'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:50:in
`find_step_match!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:27:in
`invoke'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_invocation.rb:22:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:93:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:119:in
`visit_step'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:14:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/step_collection.rb:13:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:89:in
`visit_steps'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:40:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/step_mother.rb:152:in
`before_and_after'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/scenario.rb:39:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:64:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:78:in
`visit_feature_element'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:24:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/feature.rb:23:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:42:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:40:in
`visit_feature'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:21:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`each'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/features.rb:20:in
`accept'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/ast/visitor.rb:38:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/formatter/pretty.rb:25:in
`visit_features'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:9:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`map'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/broadcaster.rb:8:in
`method_missing'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:41:in
`execute!'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/../lib/cucumber/cli/main.rb:20:in
`execute'

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:6

/Users/jgoodsen8440/Applications/Java/jruby-1.2.0/lib/ruby/gems/1.8/gems/cucumber-0.2.3.1/bin/cucumber:19:in
`load'
      /Users/jgoodsen8440/Applications/Java/jruby-1.2.0/bin/cucumber:19
      features/demo.feature:18:in `Given I have 99 green cukes'

3 scenarios
5 failed steps
2 skipped steps
pcp072050pcs:simple jgoodsen8440$
Aslak H. (Guest)
on 2009-04-21 08:23
(Received via mailing list)
> Aslak,
>

Any chance you could join #cucumber on IRC tonight?

Aslak
This topic is locked and can not be replied to.