Sha256: abbb8bda28c0e995216849d306c3cdd3d0fe2f431dfa48a7d8df507caae79267

Contents?: true

Size: 394 Bytes

Versions: 2

Compression:

Stored size: 394 Bytes

Contents

require File.expand_path("../../test_helper", __FILE__)

class BBQueue::ProducerTest < MiniTest::Test
  def test_enqueue
    test_job = BBQueue::TestJob.new(1, 2)

    producer = BBQueue::Producer.new("queue")
    producer.enqueue test_job, :delay => 10

    assert_equal ["queue", { "object" => BBQueue::Serializer.dump(test_job) }, { :delay => 10 }], producer.stalking.queue.last
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bbqueue-0.0.2 test/bbqueue/producer_test.rb
bbqueue-0.0.1 test/bbqueue/producer_test.rb