spec/spec_helper.rb
# Run test inside of reactor.
Run test inside of reactor.
Run test inside of reactor .
def em(ttl=30, &block)
    if block
      EM.run do
        EM.add_timer(ttl) do
          EM.stop
          raise "Test timed-out"
        end
        block.call(EM)
      end
    else 
      EM
    end
  end
def em ( ttl = 30 , & block ) if block EM . run do EM . add_timer ( ttl ) do EM . stop raise "Test timed-out" end block . call ( EM ) end else EM end end
Run test inside of reactor.
Run test inside of reactor .
# Run the block inside of a reactor # or just grab em and go nuts.
ttl
<not_specific>
block
<not_specific>