You are viewing an historical archive of past issues. Please
report new issues to the appropriate project issue tracker on
GitHub.
Comments
-
Greg Hurrell
Status changed:
- From: New
- To: Open
-
Greg Hurrell
diff --git a/features/step_definitions/webrat_steps.rb b/features/step_definitions/webrat_steps.rb index caf436d..6178549 100644 --- a/features/step_definitions/webrat_steps.rb +++ b/features/step_definitions/webrat_steps.rb @@ -87,10 +87,18 @@ When /^I attach the file at "(.*)" to "(.*)" $/ do |path, field| end Then /^I should see "(.*)"$/ do |text| + HTML::FullSanitizer.new.sanitize(response.body).should =~/#{text}/m +end + +Then /^The page source should match "(.*)"$/ do |text| response.body.should =~ /#{text}/m end Then /^I should not see "(.*)"$/ do |text| + HTML::FullSanitizer.new.sanitize(response.body).should_not =~/#{text}/m +end + +Then /^The page source should not match "(.*)"$/ do |text| response.body.should_not =~ /#{text}/m end
-
Greg Hurrell
Status changed:
- From: Open
- To: Closed
Add a comment
Comments are now closed for this issue.