Commit 5d89d75a authored by Bob Van Landuyt's avatar Bob Van Landuyt

Merge branch 'ld-wiki_spec' into 'master'

Optimise WikiPage spec

See merge request gitlab-org/gitlab!42796
parents 78473e9e e5699ae1
......@@ -106,7 +106,7 @@ class Wiki
[WikiDirectory.group_pages(pages), limited]
end
# Finds a page within the repository based on a tile
# Finds a page within the repository based on a title
# or slug.
#
# title - The human readable or parameterized title of
......
......@@ -4,7 +4,7 @@ FactoryBot.define do
factory :wiki do
transient do
container { association(:project) }
user { association(:user) }
user { container.default_owner || association(:user) }
end
initialize_with { Wiki.for_container(container, user) }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment