summaryrefslogtreecommitdiff
path: root/spec/models/cycle_analytics/production_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-15 17:28:29 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-24 09:55:01 -0600
commitfaa2e2df8fb95655ebfb8523689295e223005d9d (patch)
treeb31b33532ddbc7d4966b33e446a27d8c99632261 /spec/models/cycle_analytics/production_spec.rb
parent0625af3bcb75b3186a3286eee662a7ff8442f130 (diff)
downloadgitlab-ce-faa2e2df8fb95655ebfb8523689295e223005d9d.tar.gz
Rename commit_file, commit_dir and remove_file and update specs
Diffstat (limited to 'spec/models/cycle_analytics/production_spec.rb')
-rw-r--r--spec/models/cycle_analytics/production_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/models/cycle_analytics/production_spec.rb b/spec/models/cycle_analytics/production_spec.rb
index b9fe492fe2c..e6a826a9418 100644
--- a/spec/models/cycle_analytics/production_spec.rb
+++ b/spec/models/cycle_analytics/production_spec.rb
@@ -21,13 +21,12 @@ describe 'CycleAnalytics#production', feature: true do
["production deploy happens after merge request is merged (along with other changes)",
lambda do |context, data|
# Make other changes on master
- sha = context.project.repository.commit_file(
+ sha = context.project.repository.create_file(
context.user,
context.random_git_name,
'content',
message: 'commit message',
- branch_name: 'master',
- update: false)
+ branch_name: 'master')
context.project.repository.commit(sha)
context.deploy_master