From 1cf751c68d8f63df96c01dfc65edfdc2472a0f5c Mon Sep 17 00:00:00 2001 From: Yoann Lecuyer Date: Sat, 28 Dec 2024 16:39:11 +0100 Subject: [PATCH] Fix spec --- spec/cases/http_service_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/cases/http_service_spec.rb b/spec/cases/http_service_spec.rb index 03f4023f..e1fee32c 100644 --- a/spec/cases/http_service_spec.rb +++ b/spec/cases/http_service_spec.rb @@ -238,8 +238,8 @@ def adapter(arg) it 'logs tokens' do allow(Koala.config).to receive(:mask_tokens) { false } - expect(Koala::Utils).to receive(:debug).with('STARTED => GET: /foo params: {"an"=>:arg, "access_token"=>"myvisbleaccesstoken"}') - expect(Koala::Utils).to receive(:debug).with('FINISHED => GET: /foo params: {"an"=>:arg, "access_token"=>"myvisbleaccesstoken"}') + expect(Koala::Utils).to receive(:debug).with('STARTED => GET: /foo params: {"an" => :arg, "access_token" => "myvisbleaccesstoken"}') + expect(Koala::Utils).to receive(:debug).with('FINISHED => GET: /foo params: {"an" => :arg, "access_token" => "myvisbleaccesstoken"}') Koala::HTTPService.make_request(request) end @@ -247,8 +247,8 @@ def adapter(arg) it 'doesnt log tokens' do allow(Koala.config).to receive(:mask_tokens) { true } - expect(Koala::Utils).to receive(:debug).with('STARTED => GET: /foo params: {"an"=>:arg, "access_token"=>"myvisbleac*****token"}') - expect(Koala::Utils).to receive(:debug).with('FINISHED => GET: /foo params: {"an"=>:arg, "access_token"=>"myvisbleac*****token"}') + expect(Koala::Utils).to receive(:debug).with('STARTED => GET: /foo params: {"an" => :arg, "access_token" => "myvisbleac*****token"}') + expect(Koala::Utils).to receive(:debug).with('FINISHED => GET: /foo params: {"an" => :arg, "access_token" => "myvisbleac*****token"}') Koala::HTTPService.make_request(request) end @@ -258,8 +258,8 @@ def adapter(arg) allow(Koala.config).to receive(:mask_tokens) { true } - expect(Koala::Utils).to receive(:debug).with('STARTED => GET: /debug_token params: {"input_token"=>"myvisiblea*****token", "access_token"=>"myvisiblea*****token"}') - expect(Koala::Utils).to receive(:debug).with('FINISHED => GET: /debug_token params: {"input_token"=>"myvisiblea*****token", "access_token"=>"myvisiblea*****token"}') + expect(Koala::Utils).to receive(:debug).with('STARTED => GET: /debug_token params: {"input_token" => "myvisiblea*****token", "access_token" => "myvisiblea*****token"}') + expect(Koala::Utils).to receive(:debug).with('FINISHED => GET: /debug_token params: {"input_token" => "myvisiblea*****token", "access_token" => "myvisiblea*****token"}') Koala::HTTPService.make_request(request) end