diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-19 20:29:44 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-19 20:29:44 +0300 |
commit | dc6afd575fdcceb51e44565e68f4db9bf3e19124 (patch) | |
tree | 0cbc612210aa6467df89f1c710373f8d2f28fa65 /spec/requests/api/builds_spec.rb | |
parent | 091142118ee9555544acf6d05f61fd109e400ff2 (diff) |
Just use default_branch, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347#note_13176885
Diffstat (limited to 'spec/requests/api/builds_spec.rb')
-rw-r--r-- | spec/requests/api/builds_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/builds_spec.rb b/spec/requests/api/builds_spec.rb index f28c027287f..2782d7e0490 100644 --- a/spec/requests/api/builds_spec.rb +++ b/spec/requests/api/builds_spec.rb @@ -192,8 +192,8 @@ describe API::API, api: true do let(:pipeline) do create(:ci_pipeline, project: project, - sha: project.commit('fix').sha, - ref: 'fix') + sha: project.commit.sha, + ref: project.default_branch) end let(:build) { create(:ci_build, :success, :artifacts, pipeline: pipeline) } |