summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-02-09 12:47:11 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-02-13 15:11:21 +0100
commitffcf3c68586b5e4a977a3c92cd1b3f8b1871c322 (patch)
tree7b243e742f1eeb1589e4b7ffb3971ed88de51b34 /spec
parent008f22cd820a5bf9e8ff9a68550c9550463d3279 (diff)
downloadgitlab-ce-ffcf3c68586b5e4a977a3c92cd1b3f8b1871c322.tar.gz
Skip job only when canceling the pipeline it belongs to
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/commit_statuses_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/requests/api/commit_statuses_spec.rb b/spec/requests/api/commit_statuses_spec.rb
index 88361def3cf..ee5865ad740 100644
--- a/spec/requests/api/commit_statuses_spec.rb
+++ b/spec/requests/api/commit_statuses_spec.rb
@@ -5,12 +5,15 @@ describe API::CommitStatuses, api: true do
let!(:project) { create(:project, :repository) }
let(:commit) { project.repository.commit }
- let(:commit_status) { create(:commit_status, pipeline: pipeline) }
let(:guest) { create_user(:guest) }
let(:reporter) { create_user(:reporter) }
let(:developer) { create_user(:developer) }
let(:sha) { commit.id }
+ let(:commit_status) do
+ create(:commit_status, status: :pending, pipeline: pipeline)
+ end
+
describe "GET /projects/:id/repository/commits/:sha/statuses" do
let(:get_url) { "/projects/#{project.id}/repository/commits/#{sha}/statuses" }