Rspec 无法加载错误 [英] Rspec cannot load error
问题描述
昨天运行这个 (bundle exec rspec spec/requests/static_pages_spec.rb) 运行良好,但今天当我回到我的环境 (Aptana) 时,我收到以下错误:
Running this (bundle exec rspec spec/requests/static_pages_spec.rb) worked fine yesterday, but today when I go back into my environment (Aptana) I get the following errors:
/Users/sa/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746:in `load': c
annot load such file -- /Users/sa/Documents/AptanaWorkspace/receiver/spec/spec/requests/static_pages_spec
.rb (LoadError)
from /Users/sa/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746
:in `block in load_spec_files'
from /Users/sa/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746
:in `map'
from /Users/sa/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.10.1/lib/rspec/core/configuration.rb:746
:in `load_spec_files'
from /Users/sa/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.10.1/lib/rspec/core/command_line.rb:22:i
n `run'
from /Users/sa/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:69:in `run
'
from /Users/sa/.rvm/gems/ruby-1.9.3-p0/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:10:in `blo
ck in autorun'
当我检查了所有引用并试图从我的应用程序的根目录运行它时,我很难过.非常感谢所有帮助.谢谢.
I'm stumped as I've checked all references and am trying to run this from my app's root directory. All assistance is greatly appreciated. Thanks.
推荐答案
cannot load such file -- /Users/sa/Documents/AptanaWorkspace/receiver/spec/spec/requests/static_pages_spec.rb (LoadError)
看起来你有一个额外的 /spec
,可能应该是 /Users/sa/Documents/AptanaWorkspace/receiver/spec/requests/static_pages_spec.rb
.你确定你没有改变任何东西吗?
Looks like you've got an extra /spec
in there, probably should be /Users/sa/Documents/AptanaWorkspace/receiver/spec/requests/static_pages_spec.rb
. Are you sure you haven't changed anything?
这篇关于Rspec 无法加载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!