Commit e397f989 authored by Michael Kozono's avatar Michael Kozono

Merge branch 'pl-rubocop-fix-offenses-style-class-equality-comparison' into 'master'

Fix RuboCop offenses for Style/ClassEqualityComparison

See merge request gitlab-org/gitlab!56227
parents 6ef79b80 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
......@@ -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) }
......
......@@ -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) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment