summaryrefslogtreecommitdiff
path: root/spec/features/projects/branches
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-19 18:46:15 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-19 18:46:15 +0800
commiteadb1dc547ac1d0e3eb964d077f0b1580d588a95 (patch)
tree71b40febbfb2e197657a2c6407c4a226eeb74255 /spec/features/projects/branches
parent1aba3a5c0e7c2b727f4317aab19bbc662f0fd727 (diff)
downloadgitlab-ce-eadb1dc547ac1d0e3eb964d077f0b1580d588a95.tar.gz
Make sure the branch we're testing is on the 1st page!
Diffstat (limited to 'spec/features/projects/branches')
-rw-r--r--spec/features/projects/branches/download_buttons_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/branches/download_buttons_spec.rb b/spec/features/projects/branches/download_buttons_spec.rb
index a223786777b..04058300570 100644
--- a/spec/features/projects/branches/download_buttons_spec.rb
+++ b/spec/features/projects/branches/download_buttons_spec.rb
@@ -9,8 +9,8 @@ feature 'Download buttons in branches page', feature: true do
given(:pipeline) do
create(:ci_pipeline,
project: project,
- sha: project.commit.sha,
- ref: project.default_branch,
+ sha: project.commit('binary-encoding').sha,
+ ref: 'binary-encoding', # make sure the branch is in the 1st page!
status: status)
end