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