summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-12-17 11:40:36 +0000
committerSteve Kemp <steve@steve.org.uk>2012-12-17 11:40:36 +0000
commitb3cb54197835f16143c4fb5c6f01795fb175ad02 (patch)
treefa816dbc65827f3775ae0883ca4106dafb5ba5ef /lib
parentff4909b7a816eeb5490f548f5b70eecff83423af (diff)
Ensure our test fails if the content doesn't match
Diffstat (limited to 'lib')
-rw-r--r--lib/custodian/protocoltest/http.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb
index 6de74d3..ed98029 100644
--- a/lib/custodian/protocoltest/http.rb
+++ b/lib/custodian/protocoltest/http.rb
@@ -175,13 +175,14 @@ module Custodian
if ( !@expected_content.nil? )
if ( @content && (! @content.match(/#{@expected_content}/i) ) )
@error = "<p>The response did not contain our expected text '#{@expected_content}'</p>"
+ return false
end
end
#
# All done.
#
- true
+ return true
end