lib/rubocop/cop/rspec/be_eq.rb in rubocop-rspec-2.12.1 vs lib/rubocop/cop/rspec/be_eq.rb in rubocop-rspec-2.13.0
- old
+ new
@@ -8,10 +8,9 @@
# The `be` matcher compares by identity while the `eq` matcher compares
# using `==`. Booleans and nil can be compared by identity and therefore
# the `be` matcher is preferable as it is a more strict test.
#
# @example
- #
# # bad
# expect(foo).to eq(true)
# expect(foo).to eq(false)
# expect(foo).to eq(nil)
#