Rails 3 Error loading cucumber

I am trying to get a cucumber to work with Rails 3.
But whenever I try to run the cucumber functions, I get a loading error.

cucumber-0.7.3/lib/cucumber/ast/feature_element.rb:2:in `require': no such file to load -- gherkin/parser/tag_expression (LoadError) 

I added the following gems to the gemfile

 gem "rspec", '>= 2.0.0.beta.19' gem 'capybara' gem 'database_cleaner' gem 'cucumber-rails', '~> 0.1.1.rc6' gem 'cucumber', '~> 0.7.0.beta.8' gem 'rspec-rails', '~> 2.0.0.beta.19' gem 'spork' gem 'launchy' 

I work on ruby-1.9.2-p0

Any suggestions?

+6
ruby-on-rails-3 cucumber
source share
1 answer

I got the same error and was able to get past it, causing the brisket to load into the Gemfile, and not as a dependency of a cucumber.

So, assigning a specific version of Gherkin and> = cucumbers:

  ... gem 'gherkin', '2.1.5' gem 'cucumber-rails', '>=0.3.2' gem 'cucumber', '>=0.8.5' ... 
+3
source share

All Articles