Problem with cucumber
Posted
by sev
on Stack Overflow
See other posts from Stack Overflow
or by sev
Published on 2010-06-10T08:27:52Z
Indexed on
2010/06/10
8:32 UTC
Read the original article
Hit count: 719
I want to make rails app which will require minimum gems. I freeze gems into app and try to run cucumber's test and I've got the an error. Below is sequence of my actions. What I do wrong?
rails cucumber && cd cucumber
rake rails:freeze:gems
add at the end of config/environments/test.rb:
config.gem 'gherkin'
config.gem 'cucumber-rails'
config.gem 'database_cleaner'
config.gem 'webrat'
rake gems:unpack:dependencies RAILS_ENV=test
rake gems:build RAILS_ENV=test
rake gems RAILS_ENV=test
- [F] gherkin
- [F] trollop >= 1.16.2
- [F] cucumber-rails
- [F] cucumber >= 0.8.0
- [F] gherkin >= 1.0.30
- [F] trollop >= 1.16.2
- [F] term-ansicolor >= 1.0.4
- [F] builder >= 2.1.2
- [F] diff-lcs >= 1.1.2
- [F] json_pure >= 1.4.3
- [F] cucumber >= 0.8.0
- [F] database_cleaner
- [F] webrat
- [F] nokogiri >= 1.2.0
- [F] rack >= 1.0
- [F] rack-test >= 0.5.3
- [F] rack >= 1.0
- [F] gherkin
script/generate cucumber
rake db:migrate
gem uninstall builder cucumber cucumber-rails diff-lcs gherkin json_pure nokogiri rack-test term-ansicolor trollop webrat
rake cucumber
/usr/bin/ruby1.8 -I "cucumber/vendor/gems/cucumber-0.8.0/lib:lib" "cucumber/vendor/gems/cucumber-0.8.0/bin/cucumber" --profile default
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- gherkin (LoadError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require' from cucumber/vendor/gems/cucumber-0.8.0/bin/../lib/cucumber/cli/main.rb:5 from cucumber/vendor/gems/cucumber-0.8.0/bin/cucumber:5:in
require' from cucumber/vendor/gems/cucumber-0.8.0/bin/cucumber:5 rake aborted! Command failed with status (1): [/usr/bin/ruby1.8 -I "cucumbe...](See full trace by running task with --trace)
© Stack Overflow or respective owner