Sha256: 54f796ed792700dd14994101411f278f8d97fa6060dd320ca9cb7fb36dc37e7f
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
require_relative '../test_helper' require 'mocha/setup' describe RenderSync::Reactor do include TestHelper describe '#perform' do it 'starts EventMachine thread and runs block' do refute RenderSync.reactor.running? ran_block = false RenderSync.reactor.perform { ran_block = true} assert RenderSync.reactor.running? sleep 0.1 assert ran_block end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
render_sync-0.5.0 | test/sync/reactor_test.rb |