summaryrefslogtreecommitdiff
path: root/spec/factories/wiki_pages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/wiki_pages.rb')
-rw-r--r--spec/factories/wiki_pages.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/factories/wiki_pages.rb b/spec/factories/wiki_pages.rb
index 3397277839e..6f912a183e8 100644
--- a/spec/factories/wiki_pages.rb
+++ b/spec/factories/wiki_pages.rb
@@ -39,14 +39,14 @@ FactoryBot.define do
factory :wiki_page_meta, class: 'WikiPage::Meta' do
title { generate(:wiki_page_title) }
- project { create(:project) }
+ project { association(:project) }
trait :for_wiki_page do
transient do
- wiki_page { create(:wiki_page, container: project) }
+ wiki_page { association(:wiki_page, container: project) }
end
- project { @overrides[:wiki_page]&.container || create(:project) }
+ project { @overrides[:wiki_page]&.container || association(:project) }
title { wiki_page.title }
initialize_with do
@@ -58,7 +58,7 @@ FactoryBot.define do
end
factory :wiki_page_slug, class: 'WikiPage::Slug' do
- wiki_page_meta { create(:wiki_page_meta) }
+ wiki_page_meta { association(:wiki_page_meta) }
slug { generate(:sluggified_title) }
canonical { false }