From 86d9d62f0173cec22785712a31f4098d458ae88e Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 17 Dec 2012 11:40:36 +0000 Subject: Ensure our test fails if the content doesn't match --- lib/custodian/protocoltest/http.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/custodian/protocoltest') 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 = "

The response did not contain our expected text '#{@expected_content}'

" + return false end end # # All done. # - true + return true end -- cgit v1.2.1