Skip to content

Fix Lint/BinaryOperatorWithIdenticalOperands offense - #3974

Open
jcoyne wants to merge 1 commit into
mainfrom
fix-lint-binary-operator-identical-operands
Open

jcoyne wants to merge 1 commit into
mainfrom
fix-lint-binary-operator-identical-operands

Conversation

@jcoyne

@jcoyne jcoyne commented Nov 24, 2026

Copy link
Copy Markdown
Member

Removes Lint/BinaryOperatorWithIdenticalOperands from .rubocop_todo.yml. The #== examples in active_model_shim_spec.rb compared MockDocument.new(id: 1) with an identical expression. They now compare a let(:document) against a new instance, so the test still checks == between two distinct objects.

@jcoyne
jcoyne force-pushed the fix-lint-binary-operator-identical-operands branch from 92f82c4 to 58796dd Compare November 24, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants