From 3c6e609578ff825c3348395ceb6e346056a18056 Mon Sep 17 00:00:00 2001 From: Eric Mueller Date: Tue, 7 May 2024 12:56:32 -0400 Subject: [PATCH] Explicity use an RSpec::Support::Mutex Rather than relying on the order of namespace-searching. It'll be clearer to future travellers what's going on here this way. --- lib/rspec/mocks/proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec/mocks/proxy.rb b/lib/rspec/mocks/proxy.rb index a78639b40..c1d3dab38 100644 --- a/lib/rspec/mocks/proxy.rb +++ b/lib/rspec/mocks/proxy.rb @@ -27,7 +27,7 @@ def initialize(object, order_group, options={}) @order_group = order_group @error_generator = ErrorGenerator.new(object) @messages_received = [] - @messages_received_mutex = Mutex.new + @messages_received_mutex = Support::Mutex.new @options = options @null_object = false @method_doubles = Hash.new { |h, k| h[k] = MethodDouble.new(@object, k, self) }