lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-2.15.0 vs lib/rubocop/cop/rspec/be_eql.rb in rubocop-rspec-2.16.0

- old
+ new

@@ -8,9 +8,12 @@ # The `be` matcher compares by identity while the `eql` matcher # compares using `eql?`. Integers, floats, booleans, symbols, and nil # can be compared by identity and therefore the `be` matcher is # preferable as it is a more strict test. # + # @safety + # This cop is unsafe because it changes how values are compared. + # # @example # # bad # expect(foo).to eql(1) # expect(foo).to eql(1.0) # expect(foo).to eql(true)