To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorAutomatically insert paired characters
- Scenarios
-
- Inserts quote marks
- Don't insert quote mark if we're already open
- Inserts parentheses
- Delete start character (quotes)
- Delete start character (parentheses)
- Type over ends
- Wrap selected text
- Inserts ending character nested
- Delete start character nested
- Type over ends nested
- Don't delete start character if moved away
- Don't type over end if moved away
- Inserts quote marks
-
- When
- I open a new edit tab
- And
- I type "\""
- Then
- the contents should be "\"<c>\""
- Don't insert quote mark if we're already open
-
- When
- I open a new edit tab
- And
- I replace the contents with "foo \" bár q"
- And
- I move to the end of the line
- And
- I move left
- When
- I type "\""
- Then
- the contents should be "foo \" bár \"q"
- Inserts parentheses
-
- When
- I open a new edit tab
- And
- I type "("
- Then
- the contents should be "(<c>)"
- Delete start character (quotes)
-
- When
- I open a new edit tab
- And
- I type "\""
- And
- I backspace
- Then
- the contents should be ""
- Delete start character (parentheses)
-
- When
- I open a new edit tab
- And
- I type "("
- And
- I backspace
- Then
- the contents should be ""
- Type over ends
-
- When
- I open a new edit tab
- And
- I type "("
- And
- I type ")"
- Then
- the contents should be "()<c>"
- Wrap selected text
-
- When
- I open a new edit tab
- And
- I type "Boris"
- And
- I select from 0 to 5
- And
- I type "("
- Then
- the contents should be "(Boris)<c>"
- Inserts ending character nested
-
- When
- I open a new edit tab
- And
- I type "\""
- And
- I type "("
- Then
- the contents should be "\"(<c>)\""
- Delete start character nested
-
- When
- I open a new edit tab
- And
- I type "\""
- And
- I type "("
- And
- I backspace
- Then
- the contents should be "\"<c>\""
- When
- I backspace
- Then
- the contents should be ""
- Type over ends nested
-
- When
- I open a new edit tab
- And
- I type "("
- And
- I type "\""
- And
- I type "\""
- And
- I type ")"
- Then
- the contents should be "(\"\")<c>"
- Don't delete start character if moved away
-
- When
- I open a new edit tab
- And
- I type "0123456789"
- And
- I move to the start of the line
- And
- I type "("
- And
- I move to the end of the line
- And
- I move to the start of the line
- And
- I move right
- And
- I backspace
- Then
- the contents should be "<c>)0123456789"
- Don't type over end if moved away
-
- When
- I open a new edit tab
- And
- I type "0123456789"
- And
- I move to the start of the line
- And
- I type "("
- And
- I move to the end of the line
- And
- I move to the start of the line
- And
- I move right
- And
- I type ")"
- Then
- the contents should be "())0123456789"
Last published almost 7 years ago by danlucraft.