Sha256: c6430518683e3ad9e5411be9ad5d0dabec36e986d297e35c4eee3bd341008431
Contents?: true
Size: 482 Bytes
Versions: 4
Compression:
Stored size: 482 Bytes
Contents
require 'test_helper' require 'localjob/mock_adapter' class MockAdapterTest < LocaljobTestCase def setup @localjob = queue @localjob.queue = Localjob::MockAdapter.new("localjob") end def test_push_to_queue @localjob << "hello world" assert_equal 1, @localjob.size end def test_push_and_pop_from_queue @localjob << "hello world" assert_equal "hello world", @localjob.shift end def test_destroy_queue @localjob << "hello world" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
localjob-0.4.1 | test/mock_adapter.rb |
localjob-0.4.0 | test/mock_adapter.rb |
localjob-0.3.0 | test/mock_adapter.rb |
localjob-0.2.0 | test/mock_adapter.rb |