lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-2.19.0 vs lib/rubocop/cop/rspec/expect_actual.rb in rubocop-rspec-2.20.0

- old
+ new

@@ -91,11 +91,11 @@ COMPLEX_LITERALS.include?(node.type) && node.each_child_node.all?(&method(:literal?)) end def swap(corrector, actual, expected) - corrector.replace(actual.source_range, expected.source) - corrector.replace(expected.source_range, actual.source) + corrector.replace(actual, expected.source) + corrector.replace(expected, actual.source) end end end end end