Skip to content

Commit

Permalink
Merge pull request #9042 from koic/correct_testcase_for_naming_variab…
Browse files Browse the repository at this point in the history
…le_number

Correct test cases for `Naming/VariableNumber`
  • Loading branch information
koic committed Nov 13, 2020
2 parents 9b33b77 + 70c6584 commit c00ad68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rubocop/cop/naming/variable_number_spec.rb
Original file line number Diff line number Diff line change
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 c00ad68

Please sign in to comment.