lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-2.11.1 vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-2.12.0
- old
+ new
@@ -3,9 +3,11 @@
module RuboCop
module Cop
module RSpec
# Checks for `expect(...)` calls containing literal values.
#
+ # Autocorrection is performed when the expected is not a literal.
+ #
# @example
# # bad
# expect(5).to eq(price)
# expect(/foo/).to eq(pattern)
# expect("John").to eq(name)