Skip to content

Commit

Permalink
Fix compatibility with Ruby 3.4.0-preview1 (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-nakamura145 authored May 24, 2024
1 parent 7dc6941 commit 6d82d71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/faraday_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6d82d71

Please sign in to comment.