Method: MiniTest::Assertions#synchronize

Defined in:
lib/minitest/unit.rb

#synchronizeObject

Takes a block and wraps it with the runner’s shared mutex.



733
734
735
736
737
# File 'lib/minitest/unit.rb', line 733

def synchronize
  Minitest::Unit.runner.synchronize do
    yield
  end
end