Fix compatibility with Ruby 3.4.0-preview1 (#1560)

This commit is contained in:
Masato Nakamura 2024-05-24 23:50:52 +09:00 committed by GitHub
parent 7dc694150d
commit 6d82d716c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"