summaryrefslogtreecommitdiff
path: root/spec/features/projects/wiki/shortcuts_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/wiki/shortcuts_spec.rb')
-rw-r--r--spec/features/projects/wiki/shortcuts_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/features/projects/wiki/shortcuts_spec.rb b/spec/features/projects/wiki/shortcuts_spec.rb
index eaff5f876b6..f70d1e710dd 100644
--- a/spec/features/projects/wiki/shortcuts_spec.rb
+++ b/spec/features/projects/wiki/shortcuts_spec.rb
@@ -3,9 +3,7 @@ require 'spec_helper'
feature 'Wiki shortcuts', :js do
let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace) }
- let(:wiki_page) do
- WikiPages::CreateService.new(project, user, title: 'home', content: 'Home page').execute
- end
+ let(:wiki_page) { create(:wiki_page, wiki: project.wiki, attrs: { title: 'home', content: 'Home page' }) }
before do
sign_in(user)