如何解决成功安装的ZenTest-4.6.2&缺少宝石?

时间:2011-09-23 03:34:51

标签: ruby-on-rails rubygems ruby-on-rails-3.1 zentest

我正在松散地经历http://ruby.railstutorial.org/chapters/,正准备考试http://ruby.railstutorial.org/chapters/static-pages#sec:testing_tools。我在我的Gemfile中列出了与自动测试相关的宝石并且没有发生意外地运行bundle install,但是当我尝试启动服务器时,我收到了错误Could not find ZenTest-4.6.2 in any of the sources。所以我将ZenTest 4.6.2添加到我的Gemfile中并重新bundle install

现在根据我的bash终端,我的bundle is complete包括Using ZenTest (4.6.2),但是当我尝试启动服务器时,我仍然收到错误Could not find ZenTest-4.6.2 in any of the sources。它是安装还是未安装?我该如何解决这个冲突?

1 个答案:

答案 0 :(得分:0)

你应该在你的宝石文件中说: gem“ZenTest”,而不是版本#。