diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-19 19:31:57 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-19 19:31:57 +0100 |
commit | 73be775cd70b3cffb78a16da5a52474d9519201e (patch) | |
tree | 9639d3145f30a15e748aad029df3c9cb3b1d40e2 /spec | |
parent | 6c6bb79422c9979708b44b35ed1c465bcd87ef99 (diff) | |
download | gitlab-ce-73be775cd70b3cffb78a16da5a52474d9519201e.tar.gz |
Fix ci_build trace trait
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/build_spec.rb | 4 | ||||
-rw-r--r-- | spec/requests/api/builds_spec.rb | 4 | ||||
-rw-r--r-- | spec/requests/ci/api/builds_spec.rb | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/build_spec.rb b/spec/models/build_spec.rb index 556527837a7..e3d3d453653 100644 --- a/spec/models/build_spec.rb +++ b/spec/models/build_spec.rb @@ -538,7 +538,7 @@ describe Ci::Build, models: true do end context 'build is erasable' do - let!(:build) { create(:ci_build_with_trace, :success, :artifacts) } + let!(:build) { create(:ci_build, :trace, :success, :artifacts) } describe '#erase' do before { build.erase(erased_by: user) } @@ -570,7 +570,7 @@ describe Ci::Build, models: true do end describe '#erased?' do - let!(:build) { create(:ci_build_with_trace, :success, :artifacts) } + let!(:build) { create(:ci_build, :trace, :success, :artifacts) } subject { build.erased? } context 'build has not been erased' do diff --git a/spec/requests/api/builds_spec.rb b/spec/requests/api/builds_spec.rb index 9a5305bddd8..175ee861a71 100644 --- a/spec/requests/api/builds_spec.rb +++ b/spec/requests/api/builds_spec.rb @@ -218,7 +218,7 @@ describe API::API, api: true do end context 'build is erasable' do - let(:build) { create(:ci_build_with_trace, :artifacts, :success, project: project, commit: commit) } + let(:build) { create(:ci_build, :trace, :artifacts, :success, project: project, commit: commit) } it 'should erase build content' do expect(response.status).to eq 201 @@ -234,7 +234,7 @@ describe API::API, api: true do end context 'build is not erasable' do - let(:build) { create(:ci_build_with_trace, project: project, commit: commit) } + let(:build) { create(:ci_build, :trace, project: project, commit: commit) } it 'should respond with forbidden' do expect(response.status).to eq 403 diff --git a/spec/requests/ci/api/builds_spec.rb b/spec/requests/ci/api/builds_spec.rb index 8eb9881649c..57d7eb927fd 100644 --- a/spec/requests/ci/api/builds_spec.rb +++ b/spec/requests/ci/api/builds_spec.rb @@ -132,7 +132,7 @@ describe Ci::API::API do describe "PUT /builds/:id" do let(:commit) {create(:ci_commit, project: project)} - let(:build) { create(:ci_build_with_trace, commit: commit, runner_id: runner.id) } + let(:build) { create(:ci_build, :trace, commit: commit, runner_id: runner.id) } before do build.run! |