summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-12-08 19:11:52 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-12-08 19:11:52 +0800
commit07b9b80a8833cf44ba804c9b8dfdf1550785fe83 (patch)
tree4bb39bfd0ca4c7255dc150b015c272be2e26aa72 /spec/support
parent8384d0d8d528ffdd60c9ba9e3c0c9f688cb560ef (diff)
downloadgitlab-ce-07b9b80a8833cf44ba804c9b8dfdf1550785fe83.tar.gz
Fix tests to use the new API
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/cycle_analytics_helpers.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/support/cycle_analytics_helpers.rb b/spec/support/cycle_analytics_helpers.rb
index 75c95d70951..6ed55289ed9 100644
--- a/spec/support/cycle_analytics_helpers.rb
+++ b/spec/support/cycle_analytics_helpers.rb
@@ -35,7 +35,13 @@ module CycleAnalyticsHelpers
project.repository.add_branch(user, source_branch, 'master')
end
- sha = project.repository.commit_file(user, random_git_name, "content", "commit message", source_branch, false)
+ sha = project.repository.commit_file(
+ user,
+ random_git_name,
+ 'content',
+ message: 'commit message',
+ branch_name: source_branch,
+ update: false)
project.repository.commit(sha)
opts = {