Skip to content

Commit

Permalink
Correct test cases for Naming/VariableNumber
Browse files Browse the repository at this point in the history
Follow rubocop#8727 (comment)

This PR corrects two test cases for `Naming/VariableNumber`.
  • Loading branch information
koic committed Nov 13, 2020
1 parent 10bf70e commit 70c6584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rubocop/cop/naming/variable_number_spec.rb
Expand Up @@ -123,7 +123,7 @@ def method1; end
it_behaves_like 'accepts', 'normalcase', '_foo'
it_behaves_like 'accepts', 'normalcase', '@foo'
it_behaves_like 'accepts', 'normalcase', '@__foo__'
it_behaves_like 'accepts', 'snake_case', 'emparejó'
it_behaves_like 'accepts', 'normalcase', 'emparejó'

it 'registers an offense for snake case numbering in symbol' do
expect_offense(<<~RUBY)
Expand Down Expand Up @@ -183,7 +183,7 @@ def method_1; end
it_behaves_like 'accepts', 'non_integer', '_'
it_behaves_like 'accepts', 'non_integer', '_foo'
it_behaves_like 'accepts', 'non_integer', '@__foo__'
it_behaves_like 'accepts', 'snake_case', 'emparejó'
it_behaves_like 'accepts', 'non_integer', 'emparejó'

it 'registers an offense for snake case numbering in symbol' do
expect_offense(<<~RUBY)
Expand Down

0 comments on commit 70c6584

Please sign in to comment.