Sha256: e67ff9a8dedf369272fceb4c01f9288cca6e60729072c2a3103bc6882ae1b89a

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

require 'test_helper'

class SysvAdapterTest < LocaljobTestCase
  def setup
    @localjob = queue
    @localjob.queue = Localjob::SysvAdapter.new(0xDEADC0DE)
  end

  def teardown
    @localjob.destroy
  end

  def test_send_and_receive
    msg = "Hello World"
    @localjob << msg
    assert_equal msg, @localjob.shift
  end

  def test_size
    @localjob << "Hello World"
    assert_equal 1, @localjob.size
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
localjob-0.3.0 test/sysv_adapter_test.rb
localjob-0.2.0 test/sysv_adapter_test.rb