Sha256: e28e2e531d742eb87b779aefdd8d0fe25f3d66cfe0e7954d6c209acba03d080b

Contents?: true

Size: 384 Bytes

Versions: 1

Compression:

Stored size: 384 Bytes

Contents

# encoding: utf-8

require 'test/unit'
require 'eio'

begin
require 'rubygems'
require 'eio/eventmachine'
rescue LoadError
end 

class TestEventmachine < Test::Unit::TestCase
  def test_eventmachine
    EM.run do
      EIO.eventmachine_handler
      EIO.open(__FILE__) do |fd|
        EIO.read(fd) do |data|
          EM.stop
        end
      end
    end
  end
end if defined?(::EM)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eio-0.1 test/test_eventmachine.rb