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: 723

Filed under:
|
|

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?

  1. rails cucumber && cd cucumber

  2. rake rails:freeze:gems

  3. add at the end of config/environments/test.rb:

    config.gem 'gherkin'

    config.gem 'cucumber-rails'

    config.gem 'database_cleaner'

    config.gem 'webrat'

  4. rake gems:unpack:dependencies RAILS_ENV=test

  5. rake gems:build RAILS_ENV=test

  6. 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] database_cleaner
    • [F] webrat
      • [F] nokogiri >= 1.2.0
      • [F] rack >= 1.0
      • [F] rack-test >= 0.5.3
        • [F] rack >= 1.0
  7. script/generate cucumber

  8. rake db:migrate

  9. gem uninstall builder cucumber cucumber-rails diff-lcs gherkin json_pure nokogiri rack-test term-ansicolor trollop webrat

  10. 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:inrequire' 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

Related posts about ruby-on-rails

Related posts about test