Skip to content

Commit

Permalink
Fix test to make it Pharo 6.1 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Feb 4, 2020
1 parent 680b0fc commit b598bcc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ RESTfulControllerAcceptNegotiatorTest >> testAcceptHeaderContentIsAnArray [

request := ZnRequest
readFrom:
'GET /example HTTP/1.1<r><l>User-Agent: Consul Agent<r><l>Accept: */*<r><l>Accept: application/json<r><l>' 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 )
Expand Down

0 comments on commit b598bcc

Please sign in to comment.