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
fb367081
Commit
fb367081
authored
Mar 10, 2021
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RuboCop offenses for Style/ClassEqualityComparison
parent
db60b519
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-5
ee/spec/lib/peek/views/active_record_spec.rb
ee/spec/lib/peek/views/active_record_spec.rb
+1
-1
spec/lib/peek/views/active_record_spec.rb
spec/lib/peek/views/active_record_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
fb367081
...
...
@@ -2512,8 +2512,3 @@ Style/HashTransformation:
-
'
spec/support/helpers/graphql_helpers.rb'
-
'
spec/support/import_export/project_tree_expectations.rb'
-
'
spec/support/shared_contexts/services/projects/container_repository/delete_tags_service_shared_context.rb'
Style/ClassEqualityComparison
:
Exclude
:
-
spec/lib/peek/views/active_record_spec.rb
-
ee/spec/lib/peek/views/active_record_spec.rb
ee/spec/lib/peek/views/active_record_spec.rb
View file @
fb367081
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
RSpec
.
describe
Peek
::
Views
::
ActiveRecord
,
:request_store
do
subject
{
Peek
.
views
.
find
{
|
v
|
v
.
class
.
name
==
Peek
::
Views
::
ActiveRecord
.
name
}
}
subject
{
Peek
.
views
.
find
{
|
v
|
v
.
instance_of?
(
Peek
::
Views
::
ActiveRecord
)
}
}
let
(
:connection_replica
)
{
double
(
:connection_replica
)
}
let
(
:connection_primary
)
{
double
(
:connection_primary
)
}
...
...
spec/lib/peek/views/active_record_spec.rb
View file @
fb367081
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
RSpec
.
describe
Peek
::
Views
::
ActiveRecord
,
:request_store
do
subject
{
Peek
.
views
.
find
{
|
v
|
v
.
class
.
name
==
Peek
::
Views
::
ActiveRecord
.
name
}
}
subject
{
Peek
.
views
.
find
{
|
v
|
v
.
instance_of?
(
Peek
::
Views
::
ActiveRecord
)
}
}
let
(
:connection
)
{
double
(
:connection
)
}
...
...
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