From d67cf144e700c1c7b8c3fb5fe1a5b08940282d87 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 20 Jun 2014 00:47:41 +0400 Subject: [PATCH] #403: added specs for AbfWorkerService::Container --- .../abf_worker_service/container_spec.rb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 spec/services/abf_worker_service/container_spec.rb diff --git a/spec/services/abf_worker_service/container_spec.rb b/spec/services/abf_worker_service/container_spec.rb new file mode 100644 index 000000000..93a2e5cea --- /dev/null +++ b/spec/services/abf_worker_service/container_spec.rb @@ -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