From fe2aa87beed94c841a2efcb0dbd0af5ea7dbc813 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Fri, 26 Jan 2024 00:15:31 +0300 Subject: [PATCH 1/2] Declare drb as a dependency for specs Failure/Error: require 'drb/drb' LoadError: cannot load such file -- drb/drb # ./lib/rspec/core/drb.rb:1:in `require' # ./lib/rspec/core/drb.rb:1:in `' # ./spec/rspec/core/invocations_spec.rb:1:in `require' # ./spec/rspec/core/invocations_spec.rb:1:in `' --- Gemfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gemfile b/Gemfile index 857bc53a1..085b94020 100644 --- a/Gemfile +++ b/Gemfile @@ -103,4 +103,6 @@ end gem 'contracts', '< 0.16' if RUBY_VERSION < '1.9.0' +gem 'drb' if RUBY_VERSION >= '3.4' + eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom') From 6363ffcd784d3e1e5923c044baf2f322a8588900 Mon Sep 17 00:00:00 2001 From: Phil Pirozhkov Date: Fri, 26 Jan 2024 00:34:09 +0300 Subject: [PATCH 2/2] Old behaviour on 3.2.2, new on 3.2.3 and 3.3+ --- spec/integration/spec_file_load_errors_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/integration/spec_file_load_errors_spec.rb b/spec/integration/spec_file_load_errors_spec.rb index af44fcd28..204d81032 100644 --- a/spec/integration/spec_file_load_errors_spec.rb +++ b/spec/integration/spec_file_load_errors_spec.rb @@ -204,7 +204,7 @@ def foo Failure/Error: __send__(method, file) EOS - if RUBY_VERSION.to_f > 3.2 + if RUBY_VERSION > '3.2.2' expect(formatted_output).to include unindent(<<-EOS) SyntaxError: --> ./tmp/aruba/broken_file.rb