diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-11 21:54:02 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-11 22:32:16 +0300 |
commit | 6a6a69f4afbe0107a75df018b662f02b5ec0166a (patch) | |
tree | b7a49ab9b0913d90251245648a885de9442708c9 /spec/services | |
parent | d983c5bd4671d989edf3741d0db0a54dcef9c3b6 (diff) |
Use state machine for pipeline event processing
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/ci/image_for_build_service_spec.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/services/ci/image_for_build_service_spec.rb b/spec/services/ci/image_for_build_service_spec.rb index 259062406c7..c931c3e4829 100644 --- a/spec/services/ci/image_for_build_service_spec.rb +++ b/spec/services/ci/image_for_build_service_spec.rb @@ -14,7 +14,6 @@ module Ci context 'branch name' do before { allow(project).to receive(:commit).and_return(OpenStruct.new(sha: commit_sha)) } before { build.run! } - before { pipeline.reload_status! } let(:image) { service.execute(project, ref: 'master') } it { expect(image).to be_kind_of(OpenStruct) } @@ -32,7 +31,6 @@ module Ci context 'commit sha' do before { build.run! } - before { pipeline.reload_status! } let(:image) { service.execute(project, sha: build.sha) } it { expect(image).to be_kind_of(OpenStruct) } |