From 0652dab1e8581d0a9bd62c639be7b651b3e69457 Mon Sep 17 00:00:00 2001 From: Bobby McDonald Date: Sat, 28 Sep 2019 00:48:38 -0400 Subject: [PATCH] Failing spec for #1033 --- spec/faraday/error_spec.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/faraday/error_spec.rb b/spec/faraday/error_spec.rb index 45ed04e11..557e9b6aa 100644 --- a/spec/faraday/error_spec.rb +++ b/spec/faraday/error_spec.rb @@ -51,6 +51,10 @@ "DEPRECATION WARNING: Faraday::Error::ClientError is deprecated! Use Faraday::ClientError instead.\n" ) end + + it 'allows backward-compatible class to be subclassed' do + expect { class CustomError < Faraday::Error::ClientError; end }.not_to raise_error(TypeError) + end end def with_warn_squelching