0

我已经在我的 Eclipse 中安装了 DLTK 插件,这样我就可以在 Eclipse 中编写 Ruby。然后我安装了 RSpec。当我尝试运行为 Ruby 测试时,我总是收到以下错误:

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- spec (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/apple/Downloads/eclipse4ruby/configuration/org.eclipse.osgi/bundles/300/1/.cp/testing/dltk-rspec-runner.rb:12:in `rescue in <main>'
from /Users/apple/Downloads/eclipse4ruby/configuration/org.eclipse.osgi/bundles/300/1/.cp/testing/dltk-rspec-runner.rb:3:in `<main>'

是否需要在 Eclipse 上进行任何其他设置/配置以支持 RSpec?

4

1 回答 1

-1

错误消息说找不到规范 gem。尝试:

sudo gem install spec
于 2014-05-29T18:07:39.193 回答