Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8755821
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:55:50+00:00 2026-06-13T13:55:50+00:00

I have just added Cucumber to my Rails app via the following steps: Adding

  • 0

I have just added Cucumber to my Rails app via the following steps:

Adding

group :test do
  gem 'cucumber'
end

to my Gemfile.

Running bundle install

Followed by rails generate cucumber:install

When there are no features, Cucumber seems to run as expected.

But when I add a feature file and run bundle exec cucumber I get the following

uninitialized constant Gherkin::Parser::Parser (NameError)
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/feature_file.rb:34:in parse'
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/runtime/features_loader.rb:28:in
block in load’
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/runtime/features_loader.rb:26:in each'
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/runtime/features_loader.rb:26:in
load’
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/runtime/features_loader.rb:14:in features'
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:170:in
features’
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:46:in run!'
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:43:in
execute!’
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:20:in execute'
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/gems/cucumber-1.2.1/bin/cucumber:14:in
‘
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/bin/cucumber:23:in load'
/Users/purinkle/.rvm/gems/ruby-1.9.3-p286@radfords/bin/cucumber:23:in
‘

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:55:51+00:00Added an answer on June 13, 2026 at 1:55 pm

    You probably have some other gem that implements Gherkin.

    If you have spinach installed, for example, that will create a conflict: when cucumber requires Gherkin, it will pull from the spinach gem instead of from gherkin

    Cucumber‘s Gherkin::Parser is a module with a Parser class in it [1].

    Spinach uses gherkin-ruby [2], which implements the whole thing in a different way, but using the same names [3] (poor implementation IMO).

    Try uninstalling spinach (removing it from your Gemfile and a bundle update should be enough) or whatever you have that might be causing a name clash.

    • [1] https://github.com/cucumber/gherkin/blob/master/lib/gherkin/parser/parser.rb#L14
    • [2] https://github.com/codegram/gherkin-ruby
    • [3] https://github.com/codegram/gherkin-ruby/blob/master/lib/gherkin/parser/parser.rb#L13
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just added cancan 1.5.0 to my rails 3 app here is my
I have created a blog application using Ruby on Rails and have just added
I have just added the following code to my pom.xml (as specified on here
My app pulls a json data feed , I have just added the reachability
I have just added an ADBannerview in my App. I create the AdBannerView in
I have just added a product and everything works fine. The product is a
I have just added a google translate in website.And set the default language English.
I have just added a Core Plot view to my application based on a
I have just added a Telerik menu to my MVC application. I also have
I've written an XML parser in Python and have just added functionality to read

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.