Sha256: 89c8499b0cfb2c0388c39db4032bdbac2ccec607b7871be7197f7b05ea543106

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

require 'test_helper'

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

3 entries across 3 versions & 1 rubygems

Version Path
localjob-0.1.1 test/mock_adapter.rb
localjob-0.1.0 test/mock_adapter.rb
localjob-0.0.2 test/mock_adapter.rb