#403: added specs for AbfWorkerService::Container

This commit is contained in:
Vokhmin Alexey V 2014-06-20 00:47:41 +04:00
parent 96f8ea33a5
commit d67cf144e7
1 changed files with 21 additions and 0 deletions

View File

@ -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