class RuboCop::RSpec::Wording
def replace_prefix(pattern, replacement)
def replace_prefix(pattern, replacement) text.sub(pattern) do |matched| uppercase?(matched) ? replacement.upcase : replacement end end
def replace_prefix(pattern, replacement) text.sub(pattern) do |matched| uppercase?(matched) ? replacement.upcase : replacement end end