lib/rubocop/rspec/wording.rb in rubocop-rspec-2.12.1 vs lib/rubocop/rspec/wording.rb in rubocop-rspec-2.13.0

- old
+ new

@@ -29,11 +29,11 @@ private attr_reader :text, :ignores, :replacements def replace_prefix(pattern, replacement) - text.sub(pattern) do |shouldnt| - uppercase?(shouldnt) ? replacement.upcase : replacement + text.sub(pattern) do |matched| + uppercase?(matched) ? replacement.upcase : replacement end end def uppercase?(word) word.upcase.eql?(word)