Skip to content

Commit e147e52

Browse files
committed
Regex match to fix 3.4 failure
1 parent 291a61d commit e147e52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/httparty/response_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def response_mock(klass)
373373
it "works" do
374374
inspect = @response.inspect
375375
expect(inspect).to include("HTTParty::Response:0x")
376-
expect(inspect).to include("parsed_response={\"foo\"=>\"bar\"}")
376+
expect(inspect).to match(/parsed_response=.*\{.*foo.*=>.*bar.*\}/)
377377
expect(inspect).to include("@response=#<Net::HTTPOK 200 OK readbody=false>")
378378
expect(inspect).to include("@headers={")
379379
expect(inspect).to include("last-modified")

0 commit comments

Comments
 (0)