[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ruby-end 47e5b92b8b 33/91: Autoformat using "cucumber -
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ruby-end 47e5b92b8b 33/91: Autoformat using "cucumber --autoformat". |
Date: |
Wed, 25 Jan 2023 19:58:26 -0500 (EST) |
branch: externals/ruby-end
commit 47e5b92b8b2c23a22a46a0b9edbadbcac65211d4
Author: Johan Andersson <johan.rejeep@gmail.com>
Commit: Johan Andersson <johan.rejeep@gmail.com>
Autoformat using "cucumber --autoformat".
---
features/ruby-end.feature | 168 +++++++++++++++++++++++-----------------------
1 file changed, 84 insertions(+), 84 deletions(-)
diff --git a/features/ruby-end.feature b/features/ruby-end.feature
index b06f43374e..a93933e03e 100644
--- a/features/ruby-end.feature
+++ b/features/ruby-end.feature
@@ -2,29 +2,29 @@ Feature: Insert end
In order to be quicker in ruby-mode
As a ruby developer
I want to automatically have end inserted for blocks
-
- Background:
+
+ 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
end
"""
-
+
Scenario: Whitespace 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
@@ -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,9 +44,9 @@ 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
@@ -54,9 +54,9 @@ Feature: Insert end
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
@@ -64,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
@@ -81,84 +81,84 @@ 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
# mode does not set the text properties.
-
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
- """
-
+ 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 648b81af13 77/91: Release v0.4.1, (continued)
- [elpa] externals/ruby-end 648b81af13 77/91: Release v0.4.1, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 627684646f 89/91: Hook into ruby-ts-mode as well, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 91fd0a7340 08/91: Quote keywords differently., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 538c52fae3 10/91: Doc change., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 421206670d 14/91: Update to v0.0.2., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 9ac13296f0 18/91: tests for statement modifiers, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 23c574c454 24/91: Add scenario for optional newline., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end bc018f6856 27/91: End should be inserted actually, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5e84c0c2fd 30/91: Update README., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 06c6378903 29/91: Update ecukes., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 47e5b92b8b 33/91: Autoformat using "cucumber --autoformat".,
ELPA Syncer <=
- [elpa] externals/ruby-end 49354ca1a3 36/91: Add punctuation in doc., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end a7723ccdd2 38/91: These two are mixed up., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 91f3c3fc6e 40/91: Add option to expand on return., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 3b2794392a 03/91: Added necessary stuff for running Ecukes., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 5f9a9721a5 02/91: Added skeleton., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end d00bb287d6 05/91: Adding some docs., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end d957d3313b 12/91: Split on more than one line., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end afd0459b11 11/91: When not expanding, fall back instead of assuming that space inserts a blank., ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 4498561af6 19/91: Split all keywords to modifiers and non-modifiers, ELPA Syncer, 2023/01/25
- [elpa] externals/ruby-end 53605d0e85 20/91: Make `ruby-end-check-statement-modifiers` t by default., ELPA Syncer, 2023/01/25