Note that there are some explanatory texts on larger screens.

plurals
  1. PORails 3, RSpec 2, and Cucumber yields wrong number of arguments (3 for 1) (ArgumentError)
    primarykey
    data
    text
    <p>I mostly followed these instructions to get things spun up: <a href="http://lindsaar.net/2010/5/9/Getting-Rails-3-Edge-with-jQuery-RSpec-and-Cucumber-using-RVM" rel="nofollow noreferrer">http://lindsaar.net/2010/5/9/Getting-Rails-3-Edge-with-jQuery-RSpec-and-Cucumber-using-RVM</a></p> <p>If I create a completely blank .feature file, running cucumber results in this error:</p> <blockquote> <p>cucumber</p> <p>wrong number of arguments (3 for 1) (ArgumentError) /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:125:in <code>scan' /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:125:in </code>transition_table' /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:112:in <code>build_transition_map' /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:108:in </code>transition_map' /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:75:in <code>initialize' /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:52:in</code>new' /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:52:in <code>push_machine' /gems/gherkin-2.0.2/lib/gherkin/parser/parser.rb:20:in</code>initialize' /gems/cucumber-0.8.3/bin/../lib/cucumber/feature_file.rb:32:in <code>new' /gems/cucumber-0.8.3/bin/../lib/cucumber/feature_file.rb:32:in </code>parse' /gems/cucumber-0.8.3/bin/../lib/cucumber/step_mother.rb:62:in <code>load_plain_text_features' /gems/cucumber-0.8.3/bin/../lib/cucumber/step_mother.rb:60:in </code>each' /gems/cucumber-0.8.3/bin/../lib/cucumber/step_mother.rb:60:in <code>load_plain_text_features' /gems/cucumber-0.8.3/bin/../lib/cucumber/cli/main.rb:55:in </code>execute!' /gems/cucumber-0.8.3/bin/../lib/cucumber/cli/main.rb:25:in <code>execute' /gems/cucumber-0.8.3/bin/cucumber:8 /bin/cucumber:19:in</code>load' /bin/cucumber:19</p> </blockquote> <p>Interestingly, if I comment out the features/support/env.rb file, I do not get the error. That doesn't do me much good though. I can run the site successfully (It's empty). Can anyone think of why the env code would kill the gherkin parser? I'm a little too new at this to know where to look next.</p> <p>Thanks. -Jeff</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload