Module: Synctest::Patches::KernelSingletonPatch

Defined in:
lib/synctest/patches.rb

Instance Method Summary collapse

Instance Method Details

#sleep(duration = nil) ⇒ Object



17
18
19
20
21
22
# File 'lib/synctest/patches.rb', line 17

def sleep(duration = nil)
  bubble = Synctest.current_bubble
  return super unless bubble

  bubble.sleep(duration)
end