diff options
| author | Patrick J Cherry <patrick@bytemark.co.uk> | 2016-02-10 10:44:21 +0000 | 
|---|---|---|
| committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2016-02-10 10:44:21 +0000 | 
| commit | 62fc56d4bc7a7e85828520eb7c586cfe0cedd2fc (patch) | |
| tree | 85625fb607bbf904f0bc01a6fc039acf74c32565 /lib/custodian | |
| parent | c6f2c6f924e6b263be5a3ba4a4eb7049f27544d3 (diff) | |
Adjusted http with content string parsing.
It now matches "can't match" and 'he said "ha!"'.
Added tests.
Diffstat (limited to 'lib/custodian')
| -rw-r--r-- | lib/custodian/protocoltest/http.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 6e0985d..3bc4b05 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -114,8 +114,8 @@ module Custodian          #          # The content we expect to find          # -        if  line =~ /with content ["']([^'"]+)['"]/ -          @expected_content = $1.dup +        if  line =~ /with content (["'])(.*)\1/ +          @expected_content = $2.dup          else            @expected_content = nil          end | 
