Sha256: 79bb9a3356669a8fbe74bf569aab6d3fb5ac9c2b596293241787adf2cbb5816e

Contents?: true

Size: 353 Bytes

Versions: 6

Compression:

Stored size: 353 Bytes

Contents

require 'uvrb'

module UVHelper
  def new_tcp
    default_loop.tcp
  end

  def default_loop
    UV::Loop.default
  end

  def run_loop
    default_loop.run
  end

  def run_loop_once
    default_loop.run_once
  end
end

RSpec.configure do |c|
  c.include UVHelper
end

require_relative 'shared_examples/handle'
require_relative 'shared_examples/stream'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
uvrb-0.2.0 spec/spec_helper.rb
uvrb-0.1.4 spec/spec_helper.rb
uvrb-0.1.3 spec/spec_helper.rb
uvrb-0.1.2 spec/spec_helper.rb
uvrb-0.1.1 spec/spec_helper.rb
uvrb-0.1.0 spec/spec_helper.rb