【发布时间】:2014-07-15 17:40:44
【问题描述】:
ruby 2.0.0p247
Rails 4.1.4
rspec 3.0.2
我正在尝试进行 Test First ruby 练习,但在执行 rake 时收到错误消息。或 rspec。
这里是:
/Users/ching/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- spec_helper (LoadError)
然后是一些目录,最后是这个:
/Users/ching/.rbenv/versions/2.0.0-p247/bin/ruby -S rspec /Users/ching/testruby/00_hello/hello_spec.rb -I/Users/ching/testruby/00_hello -I/Users/ching/testruby/00_hello/solution -f documentation -r ./rspec_config failed
【问题讨论】:
-
你有一个
spec_helper.rb在正确的位置吗?