运行它(bundle exec rspec spec / requests / static_pages_spec.rb)昨天工作正常,但今天当我回到我的环境(Aptana)时,我收到以下错误:
/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'
我很难过,因为我检查了所有引用,并尝试从我的应用程序的根目录运行它。非常感谢所有的帮助。感谢。
答案 0 :(得分:0)
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
。你确定你没有改变任何东西吗?