Sha256: 047c630f0034d0d1198237f158729a42a9b63120fb2f8eb65d73641daa161a25

Contents?: true

Size: 830 Bytes

Versions: 11

Compression:

Stored size: 830 Bytes

Contents

require 'spec_helper'
require 'perfectqueue/backend/null'

describe Backend::NullBackend do
  let (:backend){ Backend::NullBackend.new }
  describe '#list' do
    subject { backend.list{} }
     it { is_expected.to be_nil }
  end
  describe '#acquire' do
    subject { backend.acquire(double('timeout')) }
     it { is_expected.to be_nil }
  end
  describe '#finish' do
    subject { backend.finish(double('token')) }
     it { is_expected.to be true }
  end
  describe '#update' do
    subject { backend.update(double('token'), double('timeout')) }
     it { is_expected.to be_nil }
  end
  describe '#cancel' do
    subject { backend.cancel(double('id')) }
     it { is_expected.to be true }
  end
  describe '#submit' do
    subject { backend.submit(double('id'), double('data')) }
     it { is_expected.to be true }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
perfectqueue-0.8.54 spec/null_backend_spec.rb
perfectqueue-0.10.1 spec/null_backend_spec.rb
perfectqueue-0.8.53 spec/null_backend_spec.rb
perfectqueue-0.8.52 spec/null_backend_spec.rb
perfectqueue-0.10.0 spec/null_backend_spec.rb
perfectqueue-0.8.51 spec/null_backend_spec.rb
perfectqueue-0.8.50 spec/null_backend_spec.rb
perfectqueue-0.9.2 spec/null_backend_spec.rb
perfectqueue-0.9.1 spec/null_backend_spec.rb
perfectqueue-0.9.0 spec/null_backend_spec.rb
perfectqueue-0.8.49 spec/null_backend_spec.rb