From fcde80f43fcdc631e399f9473afb9b7fbf99a512 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Fri, 13 Nov 2009 21:17:41 -0500 Subject: [PATCH] Avoid Selenium test bleed by ending with an assertion about the next page --- spec/integration/rails/test/integration/webrat_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/integration/rails/test/integration/webrat_test.rb b/spec/integration/rails/test/integration/webrat_test.rb index f314ece..e06f265 100644 --- a/spec/integration/rails/test/integration/webrat_test.rb +++ b/spec/integration/rails/test/integration/webrat_test.rb @@ -22,6 +22,7 @@ class WebratTest < ActionController::IntegrationTest check "TOS" select "January" click_button "Test" + assert_contain "OK" end test "should check the value of a field" do