class RuboCop::Cop::RSpec::ImplicitSubject
def autocorrect(corrector, node)
def autocorrect(corrector, node) case node.method_name when :expect corrector.replace(node, 'is_expected') when :is_expected corrector.replace(node.location.selector, 'expect(subject)') when :should corrector.replace(node.location.selector, 'expect(subject).to') when :should_not corrector.replace(node.location.selector, 'expect(subject).not_to') else # :nocov: :noop # :nocov: end end