From b0f3ebb959234d6ebc8b3f2496888119dd18acf3 Mon Sep 17 00:00:00 2001 From: Joe Ferris Date: Sat, 18 Jul 2009 02:46:26 +0800 Subject: [PATCH] Changed webrat steps to use assert_contain for better output --- features/step_definitions/webrat_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/webrat_steps.rb b/features/step_definitions/webrat_steps.rb index 0c10cd4..3a34466 100644 --- a/features/step_definitions/webrat_steps.rb +++ b/features/step_definitions/webrat_steps.rb @@ -92,12 +92,12 @@ end Then /^I should see "([^\"]*)"$/ do |text| # response.should contain(text) - assert_match /#{text}/m, @response.body + assert_contain text end Then /^I should not see "([^\"]*)"$/ do |text| # response.should_not contain(text) - assert_no_match /#{text}/m, @response.body + assert_not_contain text end Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value| -- libgit2 0.21.2