spec/cases/api_spec.rb in koala-3.2.0 vs spec/cases/api_spec.rb in koala-3.3.0

- old
+ new

@@ -343,10 +343,10 @@ result = {"a" => 2} response = Koala::HTTPService::Response.new(200, result.to_json, { "x-ad-account-usage" => "{\"acc_id_util_pct\"9.67}"}) allow(Koala).to receive(:make_request).and_return(response) - expect(Koala::Utils.logger).to receive(:error).with("JSON::ParserError: 859: unexpected token at '{\"acc_id_util_pct\"9.67}' while parsing x-ad-account-usage = {\"acc_id_util_pct\"9.67}") + expect(Koala::Utils.logger).to receive(:error).with(/JSON::ParserError:.*unexpected token at '{"acc_id_util_pct"9.67}' while parsing x-ad-account-usage = {"acc_id_util_pct"9.67}/) api.graph_call('anything') end it "logs an error if the rate limit header can't be properly parsed" do api = Koala::Facebook::API.new('', '', nil)