Commit b0f3ebb959234d6ebc8b3f2496888119dd18acf3
Committed by
Dan Croak
1 parent
f93fc7aa
Exists in
master
and in
1 other branch
Changed webrat steps to use assert_contain for better output
Signed-off-by: Dan Croak <dcroak@thoughtbot.com>
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
features/step_definitions/webrat_steps.rb
... | ... | @@ -92,12 +92,12 @@ end |
92 | 92 | |
93 | 93 | Then /^I should see "([^\"]*)"$/ do |text| |
94 | 94 | # response.should contain(text) |
95 | - assert_match /#{text}/m, @response.body | |
95 | + assert_contain text | |
96 | 96 | end |
97 | 97 | |
98 | 98 | Then /^I should not see "([^\"]*)"$/ do |text| |
99 | 99 | # response.should_not contain(text) |
100 | - assert_no_match /#{text}/m, @response.body | |
100 | + assert_not_contain text | |
101 | 101 | end |
102 | 102 | |
103 | 103 | Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value| | ... | ... |