From c49123c772e4078a5f87fe32e07034152beabeb7 Mon Sep 17 00:00:00 2001 From: Damian Janowski Date: Tue, 13 Apr 2010 13:25:28 -0300 Subject: [PATCH] Fix Mechanize spec. --- spec/integration/mechanize/spec/mechanize_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/mechanize/spec/mechanize_spec.rb b/spec/integration/mechanize/spec/mechanize_spec.rb index 4b0273d..b2ca743 100644 --- a/spec/integration/mechanize/spec/mechanize_spec.rb +++ b/spec/integration/mechanize/spec/mechanize_spec.rb @@ -16,7 +16,7 @@ describe "Webrat's Mechanize mode" do it "should submit forms" do visit "http://localhost:9292/form" fill_in "Email", :with => "albert@example.com" - click_button "Add" + response = click_button "Add" response.should contain("Welcome albert@example.com") end