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