diff --git a/spec/faraday/error_spec.rb b/spec/faraday/error_spec.rb index 761a337b5..92bffe9a6 100644 --- a/spec/faraday/error_spec.rb +++ b/spec/faraday/error_spec.rb @@ -67,7 +67,9 @@ end it 'allows backward-compatible class to be subclassed' do - expect { Class.new(Faraday::Error::ClientError) }.not_to raise_error + expect { + with_warn_squelching { Class.new(Faraday::Error::ClientError) } + }.not_to raise_error end it 'allows rescuing of a current error with a deprecated error' do