From 6d82d716c2d7a531da6dbf711698292331cd0971 Mon Sep 17 00:00:00 2001 From: Masato Nakamura Date: Fri, 24 May 2024 23:50:52 +0900 Subject: [PATCH] Fix compatibility with Ruby 3.4.0-preview1 (#1560) --- spec/faraday_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 @@ RSpec.describe Faraday do 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"