diff --git a/spec/rubocop/cop/naming/variable_name_spec.rb b/spec/rubocop/cop/naming/variable_name_spec.rb index 78b4c75232d8..e8d93697138b 100644 --- a/spec/rubocop/cop/naming/variable_name_spec.rb +++ b/spec/rubocop/cop/naming/variable_name_spec.rb @@ -146,13 +146,6 @@ def method(funny_arg); end expect_no_offenses('_myLocal = 1') end - it 'registers an offense for method arguments' do - expect_offense(<<-RUBY.strip_indent) - def method(funny_arg); end - ^^^^^^^^^ Use camelCase for variable names. - RUBY - end - it 'registers an offense for default method arguments' do expect_offense(<<-RUBY.strip_indent) def foo(opt_arg = 1); end