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
03918d95
Commit
03918d95
authored
Oct 21, 2020
by
a_luna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cop FactoryBot/InlineAssociation for audit_events
parent
16085950
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
.rubocop_todo.yml
.rubocop_todo.yml
+0
-1
spec/factories/audit_events.rb
spec/factories/audit_events.rb
+3
-3
No files found.
.rubocop_todo.yml
View file @
03918d95
...
@@ -1279,7 +1279,6 @@ FactoryBot/InlineAssociation:
...
@@ -1279,7 +1279,6 @@ FactoryBot/InlineAssociation:
-
'
ee/spec/factories/resource_weight_events.rb'
-
'
ee/spec/factories/resource_weight_events.rb'
-
'
ee/spec/factories/vulnerabilities/feedback.rb'
-
'
ee/spec/factories/vulnerabilities/feedback.rb'
-
'
spec/factories/atlassian_identities.rb'
-
'
spec/factories/atlassian_identities.rb'
-
'
spec/factories/audit_events.rb'
-
'
spec/factories/design_management/design_at_version.rb'
-
'
spec/factories/design_management/design_at_version.rb'
-
'
spec/factories/design_management/designs.rb'
-
'
spec/factories/design_management/designs.rb'
-
'
spec/factories/design_management/versions.rb'
-
'
spec/factories/design_management/versions.rb'
...
...
spec/factories/audit_events.rb
View file @
03918d95
...
@@ -4,7 +4,7 @@ FactoryBot.define do
...
@@ -4,7 +4,7 @@ FactoryBot.define do
factory
:audit_event
,
class:
'AuditEvent'
,
aliases:
[
:user_audit_event
]
do
factory
:audit_event
,
class:
'AuditEvent'
,
aliases:
[
:user_audit_event
]
do
user
user
transient
{
target_user
{
create
(
:user
)
}
}
transient
{
target_user
{
association
(
:user
)
}
}
entity_type
{
'User'
}
entity_type
{
'User'
}
entity_id
{
target_user
.
id
}
entity_id
{
target_user
.
id
}
...
@@ -27,7 +27,7 @@ FactoryBot.define do
...
@@ -27,7 +27,7 @@ FactoryBot.define do
end
end
trait
:project_event
do
trait
:project_event
do
transient
{
target_project
{
create
(
:project
)
}
}
transient
{
target_project
{
association
(
:project
)
}
}
entity_type
{
'Project'
}
entity_type
{
'Project'
}
entity_id
{
target_project
.
id
}
entity_id
{
target_project
.
id
}
...
@@ -50,7 +50,7 @@ FactoryBot.define do
...
@@ -50,7 +50,7 @@ FactoryBot.define do
end
end
trait
:group_event
do
trait
:group_event
do
transient
{
target_group
{
create
(
:group
)
}
}
transient
{
target_group
{
association
(
:group
)
}
}
entity_type
{
'Group'
}
entity_type
{
'Group'
}
entity_id
{
target_group
.
id
}
entity_id
{
target_group
.
id
}
...
...
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