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