Sha256: ea9301a5efccbd3f8a9c8a6e385a26ddac91491fc7b81b168956ae48d6e41b25
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 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 def test_stats @localjob << "Hello World" assert_equal 20, @localjob.stats[:size] assert_equal 1, @localjob.stats[:count] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
localjob-0.4.1 | test/sysv_adapter_test.rb |
localjob-0.4.0 | test/sysv_adapter_test.rb |