Rake Cucumber错误:没有这样的文件加载 - 可输入(LoadError)

时间:2012-07-02 11:00:11

标签: ruby-on-rails cucumber rake

系统: 操作系统:Linux(Debian) 铁轨:3.1.4 红宝石:1.9.3p194 rvm:1.14.5

黄瓜:1.2.1 cucumber-rails:1.3.0

我安装了以下内容,但是当我尝试在我的应用程序的主目录中运行以下内容时:

rake cucumber --trace

我收到以下错误:

/home/user/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -S bundle exec cucumber  --profile default
Using the default profile...

No such file to load -- feedable (LoadError)

/home/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.4/lib/active_support
/dependencies.rb:306:in `rescue in depend_on'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.4/lib/active_support
/dependencies.rb:301:in `depend_on'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.4/lib/active_support
/dependencies.rb:214:in `require_dependency'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/engine.rb:417:in `block (2 levels) in eager_load!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/engine.rb:416:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/engine.rb:416:in `block in eager_load!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/engine.rb:414:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/engine.rb:414:in `eager_load!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/application/finisher.rb:51:in `block in <module:Finisher>'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/initializable.rb:30:in `instance_exec'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/initializable.rb:30:in `run'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/initializable.rb:54:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/initializable.rb:54:in `run_initializers'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/application.rb:96:in `initialize!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-rails-1.3.0/lib/cucumber/rails/application.rb:15:in `initialize!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.4/lib/rails/railtie/configurable.rb:30:in `method_missing'
/var/www/currienet/config/environment.rb:5:in `<top (required)>'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-rails-1.3.0/lib/cucumber/rails.rb:7:in `require'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-rails-1.3.0/lib/cucumber/rails.rb:7:in `<top (required)>'
/var/www/currienet/features/support/env.rb:7:in `require'
/var/www/currienet/features/support/env.rb:7:in `<top (required)>'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/rb_support/rb_language.rb:129:in `load'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/rb_support    /rb_language.rb:129:in `load_code_file'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:171:in `load_file'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:82:in `each'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:175:in `load_step_definitions'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/runtime.rb:40:in `run!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:43:in `execute!'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/lib/cucumber/cli/main.rb:20:in `execute'
/home/user/.rvm/gems/ruby-1.9.3-p194/gems/cucumber-1.2.1/bin/cucumber:14:in `<top (required)>'
/home/user/.rvm/gems/ruby-1.9.3-p194/bin/cucumber:19:in `load'
/home/user/.rvm/gems/ruby-1.9.3-p194/bin/cucumber:19:in `<main>'
/home/user/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval'
/home/user/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
rake aborted!
Command failed with status (1): [/home/user/.rvm/rubies/ruby-1.9.3-p194/bin...]

我不知道什么是可喂食的&#39;是或正在加载的地方。谷歌搜索这两个错误消息没有得到答案。

1 个答案:

答案 0 :(得分:0)

我意识到我应该在我的app目录上运行一个grep'for fedable',并发现我写的一个类中剩下的代码然后删除了 - 这是在我使用版本控制之前。一旦我删除了错误的要求,问题就消失了。

感谢那些花时间考虑这个问题的人。