From a4665b6b53a9f2370f10a4d38c77594b96143e9c Mon Sep 17 00:00:00 2001 From: Laurynas Butkus Date: Sun, 4 Aug 2024 21:53:29 +0300 Subject: [PATCH] Fix spec --- spec/convert_api_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/convert_api_spec.rb b/spec/convert_api_spec.rb index 2b2baa0..9eb58d4 100644 --- a/spec/convert_api_spec.rb +++ b/spec/convert_api_spec.rb @@ -102,13 +102,14 @@ it 'with invalid secret' do described_class.config.api_secret = 'invalid' - described_class.config.token = 'invalid' + described_class.config.token = nil expect { subject }.to raise_error(ConvertApi::ClientError) end it 'with invalid token' do described_class.config.token = 'invalid' + described_class.config.api_secret = nil expect { subject }.to raise_error(ConvertApi::ClientError) end