diff --git a/.rubocop_manual_todo.yml b/.rubocop_manual_todo.yml
index 730b4ad607c548d4602159b5348c6b2ab34155c1..4572078e721fcb73c0175e8098bd25249595c972 100644
--- a/.rubocop_manual_todo.yml
+++ b/.rubocop_manual_todo.yml
@@ -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
diff --git a/ee/spec/lib/peek/views/active_record_spec.rb b/ee/spec/lib/peek/views/active_record_spec.rb
index 826c9397a30490f7ce3ea64920b0a63a8f4d3663..e97daa5d0db1c2048bd39dbc24aa7808a1472d42 100644
--- a/ee/spec/lib/peek/views/active_record_spec.rb
+++ b/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) }
diff --git a/spec/lib/peek/views/active_record_spec.rb b/spec/lib/peek/views/active_record_spec.rb
index 5ec00f2a7b7e06e9ffbc702ef75252758f2dc039..dad5a2bf461ca48e75de9d149053b7c5454d8a00 100644
--- a/spec/lib/peek/views/active_record_spec.rb
+++ b/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) { double(:connection) }