diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-16 02:28:29 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-24 18:55:01 +0300 |
commit | faa2e2df8fb95655ebfb8523689295e223005d9d (patch) | |
tree | b31b33532ddbc7d4966b33e446a27d8c99632261 /spec/support/cycle_analytics_helpers.rb | |
parent | 0625af3bcb75b3186a3286eee662a7ff8442f130 (diff) |
Rename commit_file, commit_dir and remove_file and update specs
Diffstat (limited to 'spec/support/cycle_analytics_helpers.rb')
-rw-r--r-- | spec/support/cycle_analytics_helpers.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/support/cycle_analytics_helpers.rb b/spec/support/cycle_analytics_helpers.rb index 26f3ed5300b..c864a705ca4 100644 --- a/spec/support/cycle_analytics_helpers.rb +++ b/spec/support/cycle_analytics_helpers.rb @@ -9,7 +9,7 @@ module CycleAnalyticsHelpers commit_shas = Array.new(count) do |index| filename = random_git_name - commit_sha = project.repository.commit_file(user, filename, "content", message: message, branch_name: branch_name) + commit_sha = project.repository.create_file(user, filename, "content", message: message, branch_name: branch_name) project.repository.commit(commit_sha) commit_sha @@ -28,13 +28,12 @@ module CycleAnalyticsHelpers project.repository.add_branch(user, source_branch, 'master') end - sha = project.repository.commit_file( + sha = project.repository.create_file( user, random_git_name, 'content', message: 'commit message', - branch_name: source_branch, - update: false) + branch_name: source_branch) project.repository.commit(sha) opts = { |