lib/rspec/support/reentrant_mutex.rb in rspec-support-3.12.1 vs lib/rspec/support/reentrant_mutex.rb in rspec-support-3.12.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module RSpec module Support # Allows a thread to lock out other threads from a critical section of code, # while allowing the thread with the lock to reenter that section. # @@ -60,10 +62,10 @@ if defined? ::Mutex # On 1.9 and up, this is in core, so we just use the real one class Mutex < ::Mutex # If you mock Mutex.new you break our usage of Mutex, so - # instead we capture the original method to return Mutexs. + # instead we capture the original method to return Mutexes. NEW_MUTEX_METHOD = Mutex.method(:new) def self.new NEW_MUTEX_METHOD.call end