diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-12-17 11:40:36 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-12-17 11:40:36 +0000 |
commit | b3cb54197835f16143c4fb5c6f01795fb175ad02 (patch) | |
tree | fa816dbc65827f3775ae0883ca4106dafb5ba5ef /lib/custodian | |
parent | ff4909b7a816eeb5490f548f5b70eecff83423af (diff) |
Ensure our test fails if the content doesn't match
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/protocoltest/http.rb | 3 |
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 |