diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-02-17 18:19:41 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-02-17 18:19:41 +0300 |
commit | 761c0c86d1dbcbbed450db54ef9083e75a41ed4d (patch) | |
tree | e2b6aa90262b57c1707d028de02ddf1e3754caf0 /spec/requests/api/commit_statuses_spec.rb | |
parent | 996ea3e524b833f0024aecd4d3fef7f6eeaf5652 (diff) | |
parent | b9cc02a68e465f17eb507fd6d1eab7800b382963 (diff) |
Merge branch 'fix/gb/pipeline-retry-builds-started' into 'master'
Make pipeline retry take stages order into account
Closes #27431, #23710, and #26551
See merge request !9021
Diffstat (limited to 'spec/requests/api/commit_statuses_spec.rb')
-rw-r--r-- | spec/requests/api/commit_statuses_spec.rb | 5 |
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 1e4cb611681..5cba546bee2 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" } |