Skip to content

Commit

Permalink
Merge pull request #10880 from dgollahon/fix-elif-typo
Browse files Browse the repository at this point in the history
Fix `elif` (`elsif`) typo
  • Loading branch information
dvandersluis committed Aug 7, 2022
2 parents 4224d30 + 1ccf473 commit aedd30a
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -58,13 +58,13 @@ def some_method
RUBY
end

it 'registers an offense for aligned strings in an if/elif/else statement' do
it 'registers an offense for aligned strings in an if/elsif/else statement' do
expect_offense(<<~'RUBY')
if cond1
'a' \
'b'
^^^ Indent the first part of a string concatenated with backslash.
elif cond2
elsif cond2
'c' \
'd'
^^^ Indent the first part of a string concatenated with backslash.
Expand All @@ -79,7 +79,7 @@ def some_method
if cond1
'a' \
'b'
elif cond2
elsif cond2
'c' \
'd'
else
Expand Down

0 comments on commit aedd30a

Please sign in to comment.