我粗略地浏览了一下http://ruby.railstutorial.org/chapters/,准备测试http://ruby.railstutorial.org/chapters/static-pages#sec:testing_tools。我在Gemfile中列出了与自动测试相关的gem,并顺利地运行了bundle install,但是当我试图启动服务器时,我得到了错误Could not find ZenTest-4.6.2 in any of the sources。因此,我在Gemfile中添加了ZenTest 4.6.2并重新运行bundle install。
现在根据我的bash终端,我的bundle is complete包括Using ZenTest (4.6.2),但是当我尝试启动我的服务器时,我仍然得到错误Could not find ZenTest-4.6.2 in any of the sources。那么它是已安装的还是未安装的?我该如何解决这个冲突呢?
发布于 2011-09-23 11:36:15
它应该只是在你的gem文件中写上:gem "ZenTest",而不是版本号。
https://stackoverflow.com/questions/7523960
复制相似问题