From e689e858ede41a34b1e9132eba6a602632e6885e Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 13 May 2020 18:08:47 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/support/helpers/wiki_helpers.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'spec/support/helpers/wiki_helpers.rb') diff --git a/spec/support/helpers/wiki_helpers.rb b/spec/support/helpers/wiki_helpers.rb index 86eb1793707..e6818ff8f0c 100644 --- a/spec/support/helpers/wiki_helpers.rb +++ b/spec/support/helpers/wiki_helpers.rb @@ -14,7 +14,10 @@ module WikiHelpers file_content: File.read(expand_fixture_path(file_name)) } - ::Wikis::CreateAttachmentService.new(project, user, opts) - .execute[:result][:file_path] + ::Wikis::CreateAttachmentService.new( + container: project, + current_user: user, + params: opts + ).execute[:result][:file_path] end end -- cgit v1.2.3