Sha256: 21d4e3c78f7666ffcc78fd9f8078fac2479d4a2758953ee033db84cde7d4204f

Contents?: true

Size: 555 Bytes

Versions: 7

Compression:

Stored size: 555 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'
require File.dirname(__FILE__) + '/common_adapter_spec'

describe JobQueue::TestAdapter do
  before :all do
    JobQueue.adapter = JobQueue::TestAdapter.new
  end
  
  it_should_behave_like 'JobQueue adapter basic'
  
  it_should_behave_like "JobQueue adapter named queues"
  
  it_should_behave_like "JobQueue adapter queue length"

  it "should allow queue inspection as a hash" do
    JobQueue.adapter.queue.should == []
    JobQueue.put('hello')
    JobQueue.adapter.queue.should == ['hello']
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
mloughran-job_queue-0.0.10 spec/test_adapter_spec.rb
mloughran-job_queue-0.0.11 spec/test_adapter_spec.rb
mloughran-job_queue-0.0.9 spec/test_adapter_spec.rb
job_queue-0.0.12 spec/test_adapter_spec.rb
job_queue-0.0.11 spec/test_adapter_spec.rb
job_queue-0.0.10 spec/test_adapter_spec.rb
job_queue-0.0.9 spec/test_adapter_spec.rb