Sha256: 59880bb3c1cd805eafcbf0da9cd43963e90df478d252255e534a901d445aadbc
Contents?: true
Size: 274 Bytes
Versions: 1
Compression:
Stored size: 274 Bytes
Contents
module EventMachineHelper def fail_after(interval) EM.add_timer(interval) do fail "Expected timer to fire at the scheduled time, but it didn't" end end def pass EM.stop end def pass_after(interval) EM.add_timer(interval) { pass } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
em-scheduled-timer-0.1.0 | spec/support/eventmachine_helper.rb |