diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-01 12:07:57 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-01 12:07:57 +0100 |
commit | ccff65be237a5bdc11170cf4051c79bb587fcf9e (patch) | |
tree | 807ba5aa19677e2beaacf0f6a72411a2a64a22f2 /spec/models | |
parent | 48d7ed63912053a2a20f4352b7119ce267eb06fa (diff) | |
download | gitlab-ce-ccff65be237a5bdc11170cf4051c79bb587fcf9e.tar.gz |
Remove unused method from CI/CD build classfix/gb/remove-unused-method-from-build
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/build_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index b963ca4e542..5743c555cbe 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -181,20 +181,6 @@ describe Ci::Build, :models do end end - describe '#create_from' do - before do - build.status = 'success' - build.save - end - let(:create_from_build) { Ci::Build.create_from build } - - it 'exists a pending task' do - expect(Ci::Build.pending.count(:all)).to eq 0 - create_from_build - expect(Ci::Build.pending.count(:all)).to be > 0 - end - end - describe '#depends_on_builds' do let!(:build) { create(:ci_build, pipeline: pipeline, name: 'build', stage_idx: 0, stage: 'build') } let!(:rspec_test) { create(:ci_build, pipeline: pipeline, name: 'rspec', stage_idx: 1, stage: 'test') } |