diff options
| author | Steve Kemp <steve@steve.org.uk> | 2016-01-11 13:38:25 +0200 | 
|---|---|---|
| committer | Steve Kemp <steve@steve.org.uk> | 2016-01-11 13:38:25 +0200 | 
| commit | cee58bfa0e6fbcd3d147a7f7a694187d36ef9368 (patch) | |
| tree | 5686b2d9f319c7f6260cf5515db1fa5980ba55cc | |
| parent | 02747d3567b1d393ca177365e97c209624a3aa10 (diff) | |
Allow expected-test to be double-quoted.
This changes the parser from only allowing this:
        http://example.com/ must run http with content 'reserved'.
To allowing both of these:
        http://example.com/ must run http with content "reservered".
        http://example.com/ must run http with content 'reserved'.
| -rw-r--r-- | lib/custodian/protocoltest/http.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index ac29dbb..6e0985d 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -114,7 +114,7 @@ module Custodian          #          # The content we expect to find          # -        if  line =~ /with content '([^']+)'/ +        if  line =~ /with content ["']([^'"]+)['"]/            @expected_content = $1.dup          else            @expected_content = nil | 
