lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-3.0.5 vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-3.1.0

- old
+ new

@@ -67,10 +67,10 @@ def on_send(node) # rubocop:disable Metrics/MethodLength expect_literal(node) do |actual, send_node, matcher, expected| next if SKIPPED_MATCHERS.include?(matcher) - add_offense(actual.source_range) do |corrector| + add_offense(actual) do |corrector| next unless CORRECTABLE_MATCHERS.include?(matcher) next if literal?(expected) corrector.replace(actual, expected.source) if matcher == :be