Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

Commit

Permalink
Explicity use an RSpec::Support::Mutex
Browse files Browse the repository at this point in the history
Rather than relying on the order of namespace-searching. It'll be
clearer to future travellers what's going on here this way.
  • Loading branch information
nevinera committed May 7, 2024
1 parent 527f8fe commit 3c6e609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/mocks/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 3c6e609

Please sign in to comment.