[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ruby-end 18edd3af0b 32/91: Fix feature indentation.
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ruby-end 18edd3af0b 32/91: Fix feature indentation. |
Date: |
Wed, 25 Jan 2023 19:58:26 -0500 (EST) |
branch: externals/ruby-end
commit 18edd3af0bb5a3930b4a100a8dd7e9eb2ac92b5f
Author: Johan Andersson <johan.rejeep@gmail.com>
Commit: Johan Andersson <johan.rejeep@gmail.com>
Fix feature indentation.
---
features/ruby-end.feature | 164 +++++++++++++++++++++-------------------------
1 file changed, 76 insertions(+), 88 deletions(-)
diff --git a/features/ruby-end.feature b/features/ruby-end.feature
index ea6db83355..b06f43374e 100644
--- a/features/ruby-end.feature
+++ b/features/ruby-end.feature
@@ -5,14 +5,14 @@ Feature: Insert end
Background:
Given I am in buffer "*ruby-end*"
- And the buffer is empty
- And ruby-mode is active
- And ruby-end-mode is active
+ And the buffer is empty
+ And ruby-mode is active
+ And ruby-end-mode is active
Scenario: Keyword at beginning of line
When I type "if"
- And I press "SPC"
- And I type "condition"
+ And I press "SPC"
+ And I type "condition"
Then I should see:
"""
if condition
@@ -22,9 +22,9 @@ Feature: Insert end
Scenario: Whitespace before keyword
When I type " "
- When I type "if"
- And I press "SPC"
- And I type "condition"
+ And I type "if"
+ And I press "SPC"
+ And I type "condition"
Then I should see:
"""
if condition
@@ -34,9 +34,9 @@ Feature: Insert end
Scenario: Text before keyword
When I type "x"
- And I type "if"
- And I press "SPC"
- And I type "condition"
+ And I type "if"
+ And I press "SPC"
+ And I type "condition"
Then I should see:
"""
xif condition
@@ -44,25 +44,19 @@ Feature: Insert end
Scenario: Text after keyword
When I type "condition"
- And I go to the beginning of the line
- And I type "if"
- And I press "SPC"
+ And I go to the beginning of the line
+ And I type "if"
+ And I press "SPC"
Then I should see:
"""
if condition
"""
- But I should not see:
- """
- if
-
- endcondition
- """
Scenario: Other character before keyword
When I type "!"
- And I type "if"
- And I press "SPC"
- And I type "condition"
+ And I type "if"
+ And I press "SPC"
+ And I type "condition"
Then I should see:
"""
!if condition
@@ -70,12 +64,12 @@ Feature: Insert end
Scenario: Nested expansion
When I type "class"
- And I press "SPC"
- And I type "User"
- And I go to the end of next line
- And I type "def"
- And I press "SPC"
- And I type "email"
+ And I press "SPC"
+ And I type "User"
+ And I go to the end of next line
+ And I type "def"
+ And I press "SPC"
+ And I type "email"
Then I should see:
"""
class User
@@ -87,21 +81,21 @@ Feature: Insert end
Scenario: Only exact keywords expand
When I type "xif"
- And I press "SPC"
- And I type "condition"
+ And I press "SPC"
+ And I type "condition"
Then I should see "xif condition"
- And end should not be insterted
+ And end should not be insterted
Scenario: Do not insert newline
Given insert newline is turned off
- When I type "if"
- And I press "SPC"
- And I type "condition"
- Then I should see:
- """
- if condition
- end
- """
+ When I type "if"
+ And I press "SPC"
+ And I type "condition"
+ Then I should see:
+ """
+ if condition
+ end
+ """
# NOTE:
# I have to hax these two scenarios, since running Emacs in batch
@@ -109,68 +103,62 @@ Feature: Insert end
Scenario: In comment
Given I insert "# if "
- And I set face to be comment
- And I go back one character
- And I press "SPC"
- And I type "condition"
+ And I set face to be comment
+ And I go back one character
+ And I press "SPC"
+ And I type "condition"
Then end should not be insterted
Scenario: In string
Given I insert "'if'"
- And I set face to be string
- And I go back one character
- And I press "SPC"
- And I type "condition"
+ And I set face to be string
+ And I go back one character
+ And I press "SPC"
+ And I type "condition"
Then end should not be insterted
Scenario: Statement modifier with modifier checking
Given I enable checking of statement modifiers
- When I type "return value if"
- And I press "SPC"
- And I type "condition"
- Then I should see:
- """
- return value if condition
- """
- But I should not see:
- """
- return values if condition
-
- end
- """
+ When I type "return value if"
+ And I press "SPC"
+ And I type "condition"
+ Then I should see:
+ """
+ return value if condition
+ """
Scenario: Keyword at beginning of line with modifier checking
Given I enable checking of statement modifiers
- When I type "if"
- And I press "SPC"
- And I type "condition"
- Then I should see:
- """
- if condition
-
- end
- """
+ When I type "if"
+ And I press "SPC"
+ And I type "condition"
+ Then I should see:
+ """
+ if condition
+
+ end
+ """
Scenario: Whitespace before keyword with modifier checking
Given I enable checking of statement modifiers
- When I type " "
- When I type "if"
- And I press "SPC"
- And I type "condition"
- Then I should see:
- """
- if condition
-
- end
- """
+ When I type " "
+ When I type "if"
+ And I press "SPC"
+ And I type "condition"
+ Then I should see:
+ """
+ if condition
+
+ end
+ """
Scenario: Block with modifier checking
Given I enable checking of statement modifiers
- When I type "collection.each do"
- And I press "SPC"
- Then I should see:
- """
- collection.each do
-
- end
- """
+ When I type "collection.each do"
+ And I press "SPC"
+ Then I should see:
+ """
+ collection.each do
+
+ end
+ """
- [elpa] externals/ruby-end 37b5fdad6d 13/91: Tests only pass when using read-kbd-macro instead of kbd, which really is the same..., (continued)
- [elpa] externals/ruby-end 37b5fdad6d 13/91: Tests only pass when using read-kbd-macro instead of kbd, which really is the same..., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 9f0caf41d6 15/91: Update regular expressions for matching expansion., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 8cc9faf605 17/91: Allow to toggle on/off expansion with statement modifiers, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 96c19df26d 22/91: adds option for adding the blank line between statement and end, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 690e970812 23/91: Use when instead of if/progn., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 8787319fe3 04/91: Added code with tests., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 427237b83d 25/91: Fix whitespace and indent., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 45670f9134 26/91: Version bump., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 3f9349c3d0 28/91: Update espuds., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 25baf1c7d8 31/91: Update espuds., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 18edd3af0b 32/91: Fix feature indentation.,
ELPA Syncer <=
- [elpa] externals/ruby-end cc1f6cf297 34/91: Add 'ruby' keyword., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5c6261a267 39/91: Do these even more interactively., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end be0e1a154f 42/91: Update copyright years., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 20025067e5 44/91: Add Carton., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end cf773a8702 48/91: Update README., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5c6c7ceabd 49/91: Remove Espuds and Ecukes as submodules., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end a761a0d84c 16/91: Fix expand on modifiers, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end f090fbbf74 51/91: make sure to call fallback commands interactively, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end ec7c55036c 52/91: Merge branch 'jeffgran-master', ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 17cea12620 65/91: Release v0.3.0., ELPA Syncer, 2023/01/25