2
我試圖使用RSpec的與該命令(多個)束rspec的/規範未能
bundle exec rspec /spec/models/user_spec.rb
或
bundle exec rspec /spec/requests
結果下面的錯誤信息來運行一個測試套件:
/Users/ms/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load': cannot load such file -- /spec/requests (LoadError)
from /Users/ms/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files'
from /Users/ms/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
from /Users/ms/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
from /Users/ms/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
from /Users/ms/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'
from /Users/ms/.rvm/gems/ruby-1.9.3-p286/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun'
我收到此錯誤即使我恢復爲默認測試文件,如:
require 'spec_helper'
describe User do
pending "add some examples to (or delete) #{__FILE__}"
end
它似乎我已經搞砸了寶石,但我不確定如何解決它。有任何想法嗎?
,請複製粘貼你的'spec_helper.rb'。 –