class RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation

def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str)

def convert_regexp_str_to_literal(corrector, matcher_node, regexp_str)
  str_node = matcher_node.first_argument
  regexp_expr = Regexp.new(regexp_str).inspect
  corrector.replace(str_node, regexp_expr)
end