diff --git a/spec/faraday_spec.rb b/spec/faraday_spec.rb index 30be29cf..c3583f18 100644 --- a/spec/faraday_spec.rb +++ b/spec/faraday_spec.rb @@ -19,7 +19,9 @@ it 'uses method_missing on Faraday if there is no proxyable method' do expected_message = - if RUBY_VERSION >= '3.3' + if RUBY_VERSION >= '3.4' + "undefined method 'this_method_does_not_exist' for module Faraday" + elsif RUBY_VERSION >= '3.3' "undefined method `this_method_does_not_exist' for module Faraday" else "undefined method `this_method_does_not_exist' for Faraday:Module"