2011-07-15 84 views
0

我正在通過Michael Hartl的Rails教程,我沒有任何運氣獲得自動測試工作。autotest不適用於Windows 7 32位

當運行 「自動測試」 命令我得到在我的終端的輸出如下:

C:\網站\ rails_projects \ sample_app>自動測試 裝載自動測試/ rails_rspec2


← [2J←[fbundle exec C:\ RailsInstaller \ Ruby1.8.7 \ bin \ ruby​​ -SC:/ RailsInstaller/Rub y1.8.7/lib/ruby​​/gems/1.8/gems/rspec-core-2.0.1/bin/rspec --autotest'C:/ Sites/ra ils_projects/sample_app/spec/controllers/pages_controller_spec.rb' 捆綁:找不到命令:C:\ RailsInstaller \ Ruby1.8.7 \ BIN \紅寶石 安裝缺少的寶石二進制文件bundle install 通知發送成功 通知發送成功

那麼它只是攤位,我不得不CNTRL + c離開它。

當我嘗試運行 「捆綁高管自動測試」 我得到下面的輸出:

C:\網站\ rails_projects \ sample_app>束EXEC自動測試 C:/RailsInstaller/Ruby1.8.7/lib/ ruby/gems/1.8/gems/bundler-1.0.14/lib/bundler/ru bygems_integration.rb:143:在`gem'中:ZenTest不是捆綁的一部分。將它添加到 Gemfile。 (寶石:: LoadError) 從C:/RailsInstaller/Ruby1.8.7/bin/autotest:18

我在.autotest文件中的以下內容:

要求「自動測試/咆哮「

和我的Gemfile看起來像這樣:

源 'http://rubygems.org'

寶石 '軌道', '3.0.7' 寶石 '的sqlite3-紅寶石', '1.2.5',:需要=> 'sqlite3的'

組:發展做 寶石 'RSpec的護欄', '2.0.1' 結束

組:測試做 寶石 'rspec的', '2.0.1' 寶石 'webrat', '0.7.1' 結束

有人可以幫我有了這個?

回答

0

它看起來像ZenTest可能沒有正確安裝。您可以試試gem install ZenTest並查看是否得到運行bundle exec autotest的不同結果。如果這不起作用,也許嘗試添加ZenTest到你的Gemfile。

相關問題