Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
75223963
Commit
75223963
authored
Oct 28, 2020
by
a_luna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cop FactoryBot/InlineAssociation for wiki pages
parent
13e00158
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
.rubocop_todo.yml
.rubocop_todo.yml
+0
-1
spec/factories/wiki_pages.rb
spec/factories/wiki_pages.rb
+4
-4
No files found.
.rubocop_todo.yml
View file @
75223963
...
...
@@ -1282,4 +1282,3 @@ FactoryBot/InlineAssociation:
-
'
spec/factories/packages/package_file.rb'
-
'
spec/factories/sent_notifications.rb'
-
'
spec/factories/uploads.rb'
-
'
spec/factories/wiki_pages.rb'
spec/factories/wiki_pages.rb
View file @
75223963
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment