summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/http.rb
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
commit86d9d62f0173cec22785712a31f4098d458ae88e (patch)
tree6b302c4677fa448c74d9dd0cbda54486a83f2cb0 /lib/custodian/protocoltest/http.rb
parentc8ba92f739673e01b36184990950730972ba4037 (diff)
Ensure our test fails if the content doesn't match
Diffstat (limited to 'lib/custodian/protocoltest/http.rb')
-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