From b598bcc8bd9d3d059a0c085749d68ab48aaecb33 Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Tue, 4 Feb 2020 17:24:35 -0300 Subject: [PATCH] Fix test to make it Pharo 6.1 compatible --- .../RESTfulControllerAcceptNegotiatorTest.class.st | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Stargate-Model-Tests/RESTfulControllerAcceptNegotiatorTest.class.st b/source/Stargate-Model-Tests/RESTfulControllerAcceptNegotiatorTest.class.st index 00a5ad6..f7dbd86 100644 --- a/source/Stargate-Model-Tests/RESTfulControllerAcceptNegotiatorTest.class.st +++ b/source/Stargate-Model-Tests/RESTfulControllerAcceptNegotiatorTest.class.st @@ -66,7 +66,9 @@ RESTfulControllerAcceptNegotiatorTest >> testAcceptHeaderContentIsAnArray [ request := ZnRequest readFrom: - 'GET /example HTTP/1.1User-Agent: Consul AgentAccept: */*Accept: application/json' expandMacros readStream. + ( 'GET /example HTTP/1.1<1s><2s>User-Agent: Consul Agent<1s><2s>Accept: */*<1s><2s>Accept: application/json<1s><2s>' + expandMacrosWith: Character cr asString + with: Character lf asString ) readStream. self assert: ( ( RESTfulControllerAcceptNegotiator basedOn: apiMediaTypes ) bestRepresentationFor: request )