diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-14 10:06:59 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-14 10:06:59 +0000 |
commit | c4289218718bec2c3a8eb50c1b0fca6a9ccfe7d1 (patch) | |
tree | b874e8a0acc5c0364c8b2949b876c5c9f88282be /lib/custodian/protocol-tests | |
parent | 2cfb9222873dae9ab427740be6d33e6abc68ab55 (diff) |
Respond -> Response
Diffstat (limited to 'lib/custodian/protocol-tests')
-rwxr-xr-x | lib/custodian/protocol-tests/http.rb | 4 | ||||
-rwxr-xr-x | lib/custodian/protocol-tests/https.rb | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/custodian/protocol-tests/http.rb b/lib/custodian/protocol-tests/http.rb index 67defca..2a60063 100755 --- a/lib/custodian/protocol-tests/http.rb +++ b/lib/custodian/protocol-tests/http.rb @@ -84,10 +84,10 @@ class HTTPTest # Do we need to search for text in the body of the reply? # if ( @test_data['http_text'] ) - puts "Testing for text in the response: #{@test_data['http_text']}" if ( @test_data['verbose'] ) + puts "Testing for text in the response: '#{@test_data['http_text']}'" if ( @test_data['verbose'] ) if (! @body.match(/#{@test_data['http_text']}/i) ) - @error = "#{@error} The respond did not contain #{test_data['http_text']}" + @error = "#{@error} The response did not contain our expected text '#{test_data['http_text']}'" end end diff --git a/lib/custodian/protocol-tests/https.rb b/lib/custodian/protocol-tests/https.rb index 642908f..8fb643f 100755 --- a/lib/custodian/protocol-tests/https.rb +++ b/lib/custodian/protocol-tests/https.rb @@ -81,14 +81,16 @@ class HTTPSTest end end + + # # Do we need to search for text in the body of the reply? # if ( @test_data['http_text'] ) - puts "Testing for text in the response: #{@test_data['http_text']}" if ( @test_data['verbose'] ) + puts "Testing for text in the response: '#{@test_data['http_text']}'" if ( @test_data['verbose'] ) if (! @body.match(/#{@test_data['http_text']}/i) ) - @error = "#{@error} The respond did not contain #{test_data['http_text']}" + @error = "#{@error} The response did not contain our expected text '#{test_data['http_text']}'" end end |