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
0b05699e
Commit
0b05699e
authored
Apr 14, 2021
by
Abdul Wadood
Committed by
Michael Kozono
Apr 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rails/SaveBang offenses in spec/factories_spec.rb
parent
9965db91
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-1
changelogs/unreleased/rails-save-bang-factories.yml
changelogs/unreleased/rails-save-bang-factories.yml
+5
-0
spec/factories_spec.rb
spec/factories_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
0b05699e
...
...
@@ -156,7 +156,6 @@ Rails/SaveBang:
-
'
spec/controllers/boards/issues_controller_spec.rb'
-
'
spec/controllers/sent_notifications_controller_spec.rb'
-
'
spec/controllers/sessions_controller_spec.rb'
-
'
spec/factories_spec.rb'
-
'
spec/frontend/fixtures/issues.rb'
-
'
spec/frontend/fixtures/merge_requests.rb'
-
'
spec/graphql/mutations/merge_requests/set_locked_spec.rb'
...
...
changelogs/unreleased/rails-save-bang-factories.yml
0 → 100644
View file @
0b05699e
---
title
:
Fix Rails/SaveBang rubocop offenses in spec/factories_spec.rb
merge_request
:
58102
author
:
Abdul Wadood @abdulwd
type
:
fixed
spec/factories_spec.rb
View file @
0b05699e
...
...
@@ -44,7 +44,7 @@ RSpec.describe 'factories' do
end
it
'does not raise error when created'
do
expect
{
create
(
factory
.
name
)
}.
not_to
raise_error
expect
{
create
(
factory
.
name
)
}.
not_to
raise_error
# rubocop:disable Rails/SaveBang
end
factory
.
definition
.
defined_traits
.
map
(
&
:name
).
each
do
|
trait_name
|
...
...
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