Skip to content

Commit

Permalink
Fix a couple of step definitions. [#27]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed May 21, 2009
1 parent ae02f7b commit 4a30d48
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions features/step_definitions/webrat_steps.rb
Expand Up @@ -94,16 +94,16 @@
response.should contain(text)
end

Then /^I should see something matching "([^\"]*)"$/ do |pattern|
response.should have_text(/#{pattern}/)
Then /^I should not see "([^\"]*)"$/ do |text|
response.should_not contain(text)
end

Then /^I should not see something matching "([^\"]*)"$/ do |pattern|
response.should_not have_text(/#{pattern}/)
Then /^I should see something matching "([^\"]*)"$/ do |pattern|
response.should contain(/#{pattern}/)
end

Then /^I should not see "([^\"]*)"$/ do |text|
response.should_not contain(text)
Then /^I should not see something matching "([^\"]*)"$/ do |pattern|
response.should_not contain(/#{pattern}/)
end

Then /^the "([^\"]*)" field should contain "([^\"]*)"$/ do |field, value|
Expand Down

0 comments on commit 4a30d48

Please sign in to comment.