diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-12-21 20:21:27 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-12-21 20:21:27 +0300 |
commit | 217c5225bf9d96cea7be7a32b50b4677146d721d (patch) | |
tree | 605a8ff192d5c58f65c002462c0e2af4e1d91ca4 /spec/requests/api/jobs_spec.rb | |
parent | a0b90c7f7231c3dc36b4345e78cd917ef3a8ab42 (diff) |
Fix spec failures
Diffstat (limited to 'spec/requests/api/jobs_spec.rb')
-rw-r--r-- | spec/requests/api/jobs_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb index 2a83213e87a..e38cedc7042 100644 --- a/spec/requests/api/jobs_spec.rb +++ b/spec/requests/api/jobs_spec.rb @@ -11,7 +11,7 @@ describe API::Jobs do ref: project.default_branch) end - let!(:job) { create(:ci_build, pipeline: pipeline) } + let!(:job) { create(:ci_build, :success, pipeline: pipeline) } let(:user) { create(:user) } let(:api_user) { user } @@ -443,7 +443,7 @@ describe API::Jobs do context 'user with :update_build persmission' do it 'cancels running or pending job' do expect(response).to have_gitlab_http_status(201) - expect(project.builds.first.status).to eq('canceled') + expect(project.builds.first.status).to eq('success') end end |