lib/rubocop/cop/rspec/be_nil.rb in rubocop-rspec-2.18.1 vs lib/rubocop/cop/rspec/be_nil.rb in rubocop-rspec-2.19.0

- old
+ new

@@ -55,18 +55,18 @@ def check_be_style(node) return unless be_nil_matcher?(node) add_offense(node, message: BE_MSG) do |corrector| - corrector.replace(node.loc.expression, 'be(nil)') + corrector.replace(node.source_range, 'be(nil)') end end def check_be_nil_style(node) return unless nil_value_expectation?(node) add_offense(node, message: BE_NIL_MSG) do |corrector| - corrector.replace(node.loc.expression, 'be_nil') + corrector.replace(node.source_range, 'be_nil') end end end end end