使用bundle exec rspec spec时遇到问题

时间:2012-04-20 01:02:11

标签: ruby-on-rails

我正在研究铁路http://ruby.railstutorial.org/

上的教程

我正在尝试让rspec测试一些与之相关的东西 http://ruby.railstutorial.org/chapters/static-pages?version=3.2#code:home_page_content_spec

我收到以下错误(我知道这个问题有类似的帖子,但我不确定答案对我的情况有意义,所以我转发,抱歉,如果礼仪不好)

    unknownb88d120e15d8:controllers jd$ bundle exec rspec spec/requests/static_pages_spec.rbspec/requests/static_pages_spec.rb
/Users/jd/.rvm/gems/ruby-1.9.3-p125@rails3tutorial2ndEd/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load': cannot load such file -- /Users/jd/rails_projects/sample_app/app/controllers/spec/requests/static_pages_spec.rbspec/requests/static_pages_spec.rb (LoadError)
    from /Users/jd/.rvm/gems/ruby-1.9.3-p125@rails3tutorial2ndEd/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `block in load_spec_files'
    from /Users/jd/.rvm/gems/ruby-1.9.3-p125@rails3tutorial2ndEd/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `map'
    from /Users/jd/.rvm/gems/ruby-1.9.3-p125@rails3tutorial2ndEd/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb:746:in `load_spec_files'
    from /Users/jd/.rvm/gems/ruby-1.9.3-p125@rails3tutorial2ndEd/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/jd/.rvm/gems/ruby-1.9.3-p125@rails3tutorial2ndEd/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
    from /Users/jd/.rvm/gems/ruby-1.9.3-p125@rails3tutorial2ndEd/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun'
unknownb88d120e15d8:controllers jd$ 

0 个答案:

没有答案