#403: added specs for AbfWorkerService::Container
This commit is contained in:
parent
96f8ea33a5
commit
d67cf144e7
|
@ -0,0 +1,21 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe AbfWorkerService::Container do
|
||||||
|
let(:build_list) { FactoryGirl.build(:build_list, id: 123) }
|
||||||
|
|
||||||
|
before do
|
||||||
|
stub_symlink_methods
|
||||||
|
end
|
||||||
|
|
||||||
|
subject { AbfWorkerService::Container.new(build_list) }
|
||||||
|
|
||||||
|
context '#create!' do
|
||||||
|
|
||||||
|
it 'creates task' do
|
||||||
|
expect(Resque).to receive(:push)
|
||||||
|
subject.create!
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in New Issue