自动测试在Windows 7 32位上不起作用
我正在学习MichaelHartl的Rails教程,但我没有任何机会让自动测试正常工作 当我运行“自动测试”命令时,我在终端中得到以下输出: C:\Sites\rails\u projects\sample\u app>autotest 加载自动测试/轨道\u rspec2自动测试在Windows 7 32位上不起作用,windows,ruby-on-rails-3,autotest,Windows,Ruby On Rails 3,Autotest,我正在学习MichaelHartl的Rails教程,但我没有任何机会让自动测试正常工作 当我运行“自动测试”命令时,我在终端中得到以下输出: C:\Sites\rails\u projects\sample\u app>autotest 加载自动测试/轨道\u rspec2 ←[2J←[fbundle exec C:\RailsInstaller\Ruby1.8.7\bin\ruby-S C:/RailsInstaller/Rub y1.8.7/lib/ruby/gems/1.8/gems/r
←[2J←[fbundle exec C:\RailsInstaller\Ruby1.8.7\bin\ruby-S C:/RailsInstaller/Rub y1.8.7/lib/ruby/gems/1.8/gems/rspec-core-2.0.1/bin/rspec--autotest'C:/Sites/ra ils\u项目/示例\u应用程序/规范/控制器/页面\u控制器\u规范rb' 绑定器:未找到命令:C:\RailsInstaller\Ruby1.8.7\bin\ruby 使用
bundle安装安装缺少的gem二进制文件
通知已成功发送
通知已成功发送
然后它就停止了,我必须用cntrl+c来摆脱它
当我尝试运行“bundle exec autotest”时,我得到以下输出:
C:\Sites\rails\u projects\sample\u app>bundle exec autotest
C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/ru
bygems_integration.rb:143:in'gem':ZenTest不是捆绑包的一部分。请将其添加到
Gemfile.(Gem::LoadError)
来自C:/RailsInstaller/Ruby1.8.7/bin/自动测试:18
我的.autotest文件中包含以下内容:
需要“自动测试/咆哮”
我的文件如下所示:
来源'http://rubygems.org"
gem“rails”、“3.0.7”
gem'sqlite3ruby','1.2.5',:require=>sqlite3'
小组:发展怎么办
gem'rspec rails','2.0.1'
结束
组:测试do
gem“rspec”,“2.0.1”
gem“网络鼠”,“0.7.1”
结束
有人能帮我解决这个问题吗?看起来ZenTest可能没有正确安装。您可以尝试gem install ZenTest
,看看运行bundle exec autotest
是否会得到不同的结果。如果不起作用,可以尝试将ZenTest添加到您的gem文件中