Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix rspec-mocks compatibility with ruby 3.2

Christophe Bliard4d03f2620ba9
diff --git a/spec/support/rspec_mocks_ruby_3_2_fix_argument_forwarding.rb b/spec/support/rspec_mocks_ruby_3_2_fix_argument_forwarding.rb
index 202941b24ec..c7df8e989da 100644
--- a/spec/support/rspec_mocks_ruby_3_2_fix_argument_forwarding.rb
+++ b/spec/support/rspec_mocks_ruby_3_2_fix_argument_forwarding.rb
@@ -30,9 +30,18 @@ require 'rspec/mocks'
module RSpec
module Mocks
+ class Proxy
+ # Backport rspec/rspec-mocks#1508 for ruby 3.2 compatibility until a new
+ # version of rspec-mocks is released
+ #
+ # Delete this file if using rspec-mocks version > 3.12.1. The fix will
+ # probably be included.
+ ruby2_keywords :record_message_received
+ end
+
class VerifyingMethodDouble
- # Backport rspec/rspec-mocks#1502 until a new version of rspec-mocks is
- # released
+ # Backport rspec/rspec-mocks#1502 for ruby 3.2 compatibility until a new
+ # version of rspec-mocks is released
#
# Delete this file if using rspec-mocks version > 3.12.1. The fix will
# probably be included.