Skip to content

Commit 6d82d71

Browse files
Fix compatibility with Ruby 3.4.0-preview1 (#1560)
1 parent 7dc6941 commit 6d82d71

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec/faraday_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
it 'uses method_missing on Faraday if there is no proxyable method' do
2121
expected_message =
22-
if RUBY_VERSION >= '3.3'
22+
if RUBY_VERSION >= '3.4'
23+
"undefined method 'this_method_does_not_exist' for module Faraday"
24+
elsif RUBY_VERSION >= '3.3'
2325
"undefined method `this_method_does_not_exist' for module Faraday"
2426
else
2527
"undefined method `this_method_does_not_exist' for Faraday:Module"

0 commit comments

Comments
 (0)