Skip to content

Instantly share code, notes, and snippets.

@tejasbubane
Created February 21, 2021 11:53
Show Gist options
  • Save tejasbubane/e64636d7c7dd97c4b056a09b09a6c61b to your computer and use it in GitHub Desktop.
Save tejasbubane/e64636d7c7dd97c4b056a09b09a6c61b to your computer and use it in GitHub Desktop.
Offenses for `RSpec/IdenticalEqualityAssertion` on https://github.com/pirj/real-world-rspec
Offenses:
brew/Library/Homebrew/test/pkg_version_spec.rb:20:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(described_class.parse("1.0_1")).to be == described_class.parse("1.0_1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/gems/adheres_to_policy/spec/adheres_to_policy/class_methods_spec.rb:51:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(@some_class.policy).to eql(@some_class.policy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/spec/controllers/gradebooks_controller_spec.rb:2883:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(@controller.post_grades_ltis).to eq(@controller.post_grades_ltis)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/spec/lib/lti/oauth2/access_token_spec.rb:97:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(access_token.to_s).to eq access_token.to_s
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/spec/lib/rake/task_graph_spec.rb:50:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.batches).to eq(subject.batches)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/spec/lib/sort_spec.rb:28:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(CanvasSort::First).to eq CanvasSort::First
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/spec/models/submission_spec.rb:4080:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(a2.crocodoc_document).to eq a2.crocodoc_document
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/spec/selenium/dashboard/elementary/k5_dashboard_student_spec.rb:67:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(true).to eq(true)
^^^^^^^^^^^^^^^^^^^^^^^^
canvas-lms/spec/selenium/dashboard/elementary/k5_dashboard_teacher_spec.rb:70:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(true).to eq(true)
^^^^^^^^^^^^^^^^^^^^^^^^
capybara/spec/fixtures/selenium_driver_rspec_success.rb:11:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(true).to eq(true) # rubocop:disable RSpec/ExpectActual
^^^^^^^^^^^^^^^^^^^^^^^^
cartodb/spec/models/user_part_crud_spec.rb:274:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(refresh_token).to eq refresh_token
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cartodb/spec/models/user_part_crud_spec.rb:275:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(access_token).to eq access_token
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
discourse/spec/components/directory_helper_spec.rb:23:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(helper.tmp_directory('prefix')).to eq(helper.tmp_directory('prefix'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
discourse/spec/components/site_setting_extension_spec.rb:871:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(settings.some_upload.object_id).to eq( ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
discourse/spec/models/discourse_single_sign_on_spec.rb:334:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(admin.email).to eq admin.email
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
discourse/spec/models/user_spec.rb:1512:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(hash('poutine', 'gravy')).to eq(hash('poutine', 'gravy'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
forem/spec/system/admin/admin_updates_tag_spec.rb:34:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(tag.bg_color_hex).to eq(tag.bg_color_hex)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
forem/spec/system/admin/admin_updates_tag_spec.rb:35:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(tag.text_color_hex).to eq(tag.text_color_hex)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/graphql/resolvers/base_resolver_spec.rb:95:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(resolver.single.object_id).to eq(resolver.single.object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/graphql/resolvers/base_resolver_spec.rb:228:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(last_resolver.last.object_id).to eq(last_resolver.last.object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/initializers/mail_encoding_patch_spec.rb:196:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(email.subject).to eq(email.subject)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/initializers/mail_encoding_patch_spec.rb:197:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(email.from).to eq(email.from)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/initializers/mail_encoding_patch_spec.rb:198:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(email.to).to eq(email.to)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/initializers/mail_encoding_patch_spec.rb:199:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(email.content_type).to eq(email.content_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/initializers/mail_encoding_patch_spec.rb:200:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(email.content_transfer_encoding).to eq(email.content_transfer_encoding)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/lib/gitlab/ci/config/external/context_spec.rb:109:12: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
it { expect(mutated.execution_deadline).to eq(mutated.execution_deadline) }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/lib/gitlab/daemon_spec.rb:27:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(described_class.instance).to eq(described_class.instance)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/lib/gitlab/graphql/lazy_spec.rb:28:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.force).to eq(subject.force)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/lib/gitlab/sidekiq_config/worker_spec.rb:38:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(worker_with_yaml('a')).to eq(worker_with_yaml('a'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/lib/quality/test_level_spec.rb:72:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.pattern(:system).object_id).to eq(subject.pattern(:system).object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/lib/quality/test_level_spec.rb:147:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.regexp(:system).object_id).to eq(subject.regexp(:system).object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/ci/build_trace_chunk_spec.rb:881:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(chunk).to eq chunk
^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/commit_spec.rb:88:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(commit.diff_refs).to eq(commit.diff_refs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/commit_spec.rb:95:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(commit.diff_refs).to eq(commit.diff_refs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/design_management/design_spec.rb:450:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(design.diff_refs.head_sha).to eq(design.diff_refs.head_sha)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/design_management/version_spec.rb:315:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.diff_refs).to eq(subject.diff_refs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/environment_spec.rb:1159:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(environment.ref_path).to eq(environment.ref_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/state_note_spec.rb:36:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.created_at).to eq(subject.created_at)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/user_spec.rb:3785:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(described_class.ghost).to eq(described_class.ghost)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/models/wiki_page_spec.rb:837:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject).to eq(subject)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/support/shared_examples/graphql/connection_paged_nodes_shared_examples.rb:10:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(paged_nodes.object_id).to eq(paged_nodes.object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gitlabhq/spec/uploaders/object_storage_spec.rb:128:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(uploader.upload).to eq(uploader.upload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/application/apply_spec.rb:284:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(@catalog).to eq(@catalog)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/indirector/catalog/compiler_spec.rb:285:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(facts).to eq(facts)
^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/interface/action_spec.rb:618:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.foo[:foo].object_id).to eq(subject.foo[:foo].object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/interface/option_spec.rb:146:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(subject.default).to eq(subject.default)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/node/environment_spec.rb:65:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(base).to eq(base)
^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/node/environment_spec.rb:66:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(base.hash).to eq(base.hash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/parser/functions/fqdn_rand_spec.rb:16:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(fqdn_rand(3)).to eql(fqdn_rand(3))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/resource_spec.rb:257:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(Puppet::Resource.new("file", "/f")).to eq(Puppet::Resource.new("file", "/f"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/resource_spec.rb:261:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(Puppet::Resource.new("file", "/f", :parameters => {:foo => "bar"})).to eq(Puppet::Resource.new("file", "/f", :parameters => {:foo => "bar"}))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
puppet/spec/unit/type/file_spec.rb:1134:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(file.stat.object_id).to eql(file.stat.object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
refinerycms/pages/spec/models/refinery/page_url_spec.rb:156:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(page.canonical_slug).to eq(page.canonical_slug)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/bisect/shell_runner_spec.rb:115:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(runner.original_results).to be(runner.original_results)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/configuration/only_failures_support_spec.rb:32:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(last_run_statuses).to be(last_run_statuses)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/configuration/only_failures_support_spec.rb:47:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(last_run_statuses).to be(last_run_statuses)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:631:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(self.class.described_class).to eq(self.class.described_class)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:997:30: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
it("equality") { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:1290:29: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('ex 1') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:1291:29: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('ex 2') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:1299:29: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('ex 1') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:1309:29: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('ex 2') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:1465:41: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
group().example("equality") { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:1466:41: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
group().example("equality") { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:1467:41: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
group().example("equality") { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:2025:29: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('ex 1') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_group_spec.rb:2039:27: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('ex 1') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:188:33: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example_group.example { expect(5).to eq(5) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:194:33: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example_group.example { expect(5).to eq(5) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:206:43: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example = example_group.example { expect(5).to eq(5) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:231:28: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
ex = example { expect(2).to eq(2) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:268:21: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
after { expect(true).to eq(true) }
^^^^^^^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:280:33: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example_group.example { expect(5).to eq(5) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:292:43: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example = example_group.example { expect(5).to eq(5) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:358:42: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example { test = double('Test'); expect(test).to eq test }
^^^^^^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:371:30: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('example') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:403:32: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example('example') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:412:46: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example = group.example('example') { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/example_spec.rb:620:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(1).to eq 1
^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/formatters/json_formatter_spec.rb:25:33: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
its.push it("succeeds") { expect(1).to eq 1 }
^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/resources/formatter_specs.rb:6:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(1).to eq(1)
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/resources/formatter_specs.rb:27:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(1).to eq(1)
^^^^^^^^^^^^^^^^^^
rspec-core/spec/rspec/core/runner_spec.rb:372:34: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
example("passing") { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/expectations/configuration_spec.rb:166:20: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
lambda { expect(6).to eq(6) }.should raise_error(NameError)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/expectations/configuration_spec.rb:182:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(3).to eq(3)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/expectations/configuration_spec.rb:232:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(3).to eq(3)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/expectations/configuration_spec.rb:242:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(3).to eq(3)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/expectations/expectation_target_spec.rb:37:11: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(5).to eq(5)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/expectations/failure_aggregator_spec.rb:204:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(1).to eq(1)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/built_in/be_spec.rb:697:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(5).to be == 5
^^^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/built_in/be_spec.rb:915:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(5).to be(5)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/built_in/eq_spec.rb:13:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(1).to eq(1)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/built_in/eql_spec.rb:13:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(1).to eql(1)
^^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/description_generation_spec.rb:7:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect("this").to eq "this"
^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/description_generation_spec.rb:79:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect("string").to eql("string")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/description_generation_spec.rb:179:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
match { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers/description_generation_spec.rb:180:26: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
match_when_negated { expect(1).to eq(1) }
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers_spec.rb:8:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(RSpec::Matchers.configuration).to be(RSpec::Matchers.configuration)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/rspec/matchers_spec.rb:20:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(3).to eq(3)
^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/support/shared_examples/block_matcher.rb:39:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(matcher).to eq(matcher)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-expectations/spec/support/shared_examples/value_matcher.rb:24:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(matcher).to eq(matcher)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-mocks/spec/rspec/mocks/any_instance_spec.rb:246:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(klass.new.foo).to eq(klass.new.foo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-mocks/spec/rspec/mocks/any_instance_spec.rb:247:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(klass.new.bar).to eq(klass.new.bar)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-mocks/spec/rspec/mocks/any_instance_spec.rb:333:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(klass.new.foo).to eq(klass.new.foo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-mocks/spec/rspec/mocks/matchers/receive_spec.rb:608:15: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(3).to eq(3)
^^^^^^^^^^^^^^^^^^
rspec-mocks/spec/rspec/mocks/matchers/receive_spec.rb:641:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(3).to eq(3)
^^^^^^^^^^^^^^^^^^
rspec-mocks/spec/rspec/mocks/matchers/receive_spec.rb:663:13: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(3).to eq(3)
^^^^^^^^^^^^^^^^^^
rspec-mocks/spec/rspec/mocks_spec.rb:91:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(RSpec::Mocks.configuration).to be(RSpec::Mocks.configuration)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rspec-rails/example_app_generator/spec/__verify_fixture_load_order_spec.rb:4:5: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(1).to eq 1
^^^^^^^^^^^^^^^^^
rubytoolbox/spec/models/project_spec.rb:265:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(project.health.object_id).to be == project.health.object_id
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
rubytoolbox/spec/models/rubygem/download_stat/timeseries_spec.rb:54:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(timeseries.stats.object_id).to be == timeseries.stats.object_id
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
solidus/core/spec/helpers/products_helper_spec.rb:153:9: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(description).to eq(description)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
solidus/core/spec/models/spree/variant_spec.rb:261:7: C: RSpec/IdenticalEqualityAssertion: Identical expressions on both sides of the equality may indicate a flawed test.
expect(variant.price_selector.object_id).to eq(variant.price_selector.object_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51122 files inspected, 113 offenses detected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment