Skip to content

Prefer `anything == object` over `object == anything`.

gitlab-qa-bot requested to merge work-around-objects-with-buggy-equals into master

Created by: myronmarston

Many users have objects that implement == wrongly in a way that can raise errors when given an object of an unexpected type. This avoids that situation by checking equality with anything instead.

See rspec/rspec-expectations#732 for one case of this.

Merge request reports