diff --git a/spec/rubocop/cop/layout/line_end_string_concatenation_indentation_spec.rb b/spec/rubocop/cop/layout/line_end_string_concatenation_indentation_spec.rb index 05ca764be14..908b8d44801 100644 --- a/spec/rubocop/cop/layout/line_end_string_concatenation_indentation_spec.rb +++ b/spec/rubocop/cop/layout/line_end_string_concatenation_indentation_spec.rb @@ -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. @@ -79,7 +79,7 @@ def some_method if cond1 'a' \ 'b' - elif cond2 + elsif cond2 'c' \ 'd' else