From cee58bfa0e6fbcd3d147a7f7a694187d36ef9368 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 11 Jan 2016 13:38:25 +0200 Subject: 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'. --- lib/custodian/protocoltest/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian/protocoltest') 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 -- cgit v1.2.1