這裏是我的Gemfile測試失敗後,自動測試不會停止?
source 'http://rubygems.org'
gem 'rails', '3.0.9'
gem 'mysql2', '~> 0.2.6'
group :development do
gem 'rspec-rails'
end
group :test do
gem 'rspec'
end
相當簡單,沒有什麼不尋常。在一個測試通過自動測試的偉大工程,並停止像它應該
Finished in 0.1158 seconds
4 examples, 0 failures
/Users/alex/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -rrubygems -S /Users/alex/.rvm/gems/[email protected]/gems/rspec-core-2.6.4/bin/rspec --tty '/Users/alex/Sites/slacklog/spec/controllers/pages_controller_spec.rb'
但是當一個測試失敗了無限循環,不停地進行故障
Failures:
1) PagesController GET 'contact' Should have the proper title for the contact page
Failure/Error: response.should have_selector("contact",
expected following output to contain a <contact>Contact us</contact> tag:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Slacklog</title>
<script src="/javascripts/jquery.js" type="text/javascript"></script><script src="/javascripts/jquery_ujs.js" type="text/javascript"></script><script src="/javascripts/application.js?1309037322" type="text/javascript"></script>
</head>
<body>
<h1>Pages#contact</h1>
<p>Find me in app/views/pages/contact.html.erb</p>
</body>
</html>
# ./spec/controllers/pages_controller_spec.rb:32:in `block (3 levels) in <top (required)>'
Finished in 0.16647 seconds
5 examples, 1 failure
Failed examples:
rspec ./spec/controllers/pages_controller_spec.rb:30 # PagesController GET 'contact' Should have the proper title for the contact page
/Users/alex/.rvm/rubies/ruby-1.9.2-p180/bin/ruby -rrubygems -S /Users/alex/.rvm/gems/[email protected]/gems/rspec-core-2.6.4/bin/rspec --tty '/Users/alex/Sites/slacklog/spec/controllers/pages_controller_spec.rb'
...F.
Failures:
它不斷重複
如何停止此行爲
沒有爲我解決任何問題。 – staackuser2