From 1ccf473824583059240c363874ae0e695bcd1a31 Mon Sep 17 00:00:00 2001 From: Daniel Gollahon Date: Sun, 7 Aug 2022 14:55:44 -0700 Subject: [PATCH] Fix `elif` (`elsif`) typo - Resolves what seems to be an unintentional typo where `elif` (as a method call) is being use in place of the `elsif` keyword. --- .../line_end_string_concatenation_indentation_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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