We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a616e08 commit f4ecee2Copy full SHA for f4ecee2
spec/unit/entitlements/service/github_spec.rb
@@ -338,7 +338,7 @@
338
it "logs and returns raw text for JSON parsing error" do
339
answer = "mor chicken mor rewardz!"
340
stub_request(:post, "https://github.fake/api/v3/graphql").to_return(status: 200, body: answer)
341
- expect(logger).to receive(:error).with(/JSON::ParserError \d+: unexpected token at 'mor chicken mor rewardz!': \"mor chicken mor rewardz!\"/)
+ expect(logger).to receive(:error).with("JSON::ParserError unexpected token at 'mor chicken mor rewardz!': \"mor chicken mor rewardz!\"")
342
response = subject.send(:graphql_http_post_real, "nonsense")
343
expect(response).to eq(code: 500, data: { "body" => "mor chicken mor rewardz!" })
344
end
0 commit comments