diff --git a/spec/rubocop/cli/autocorrect_spec.rb b/spec/rubocop/cli/autocorrect_spec.rb index 53cc48c1b4..08e9e122ba 100644 --- a/spec/rubocop/cli/autocorrect_spec.rb +++ b/spec/rubocop/cli/autocorrect_spec.rb @@ -51,7 +51,7 @@ {foo: 1, bar: 2, baz: 3}.reject {|k, v| k == :bar } RUBY - expect(cli.run(['-a', '--only', 'Style/HashExcept'])).to eq(0) + expect(cli.run(['-A', '--only', 'Style/HashExcept'])).to eq(0) expect(File.read('example.rb')).to eq(<<~RUBY) {foo: 1, bar: 2, baz: 3}.except(:bar) RUBY