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 collaboratorIndentation commands
- Scenarios
-
- Increase indent, soft tabs, width 2
- Decrease indent, soft tabs, width 2
- Increase indent, soft tabs, width 3
- Decrease indent, soft tabs, width 3
- Increase indent, hard tabs, width 2
- Decrease indent, hard tabs, width 2
- auto-indent, soft tabs, width 2
- Increase indent, soft tabs, width 2
-
- When
- I open a new edit tab
- And
- tabs are soft, 2 spaces
- And
- I run the command Redcar::Top::IncreaseIndentCommand
- Then
- the contents should be " "
- Decrease indent, soft tabs, width 2
-
- When
- I open a new edit tab
- And
- tabs are soft, 2 spaces
- And
- I replace the contents with "<c> "
- And
- I run the command Redcar::Top::DecreaseIndentCommand
- Then
- the contents should be " "
- Increase indent, soft tabs, width 3
-
- When
- I open a new edit tab
- And
- tabs are soft, 3 spaces
- And
- I run the command Redcar::Top::IncreaseIndentCommand
- Then
- the contents should be " "
- Decrease indent, soft tabs, width 3
-
- When
- I open a new edit tab
- And
- tabs are soft, 3 spaces
- And
- I replace the contents with "<c> "
- And
- I run the command Redcar::Top::DecreaseIndentCommand
- Then
- the contents should be " "
- Increase indent, hard tabs, width 2
-
- When
- I open a new edit tab
- And
- tabs are hard
- And
- I run the command Redcar::Top::IncreaseIndentCommand
- Then
- the contents should be "\t"
- Decrease indent, hard tabs, width 2
-
- When
- I open a new edit tab
- And
- tabs are hard
- And
- I replace the contents with "<c>\t\t"
- And
- I run the command Redcar::Top::DecreaseIndentCommand
- Then
- the contents should be "\t"
- auto-indent, soft tabs, width 2
-
- When
- I open a new edit tab
- And
- tabs are soft, 2 spaces
- And
- I replace the contents with "def f\n\t1\t\t\nend\t"
- And
- I select from 0 to 13
- And
- I run the command Redcar::AutoIndenter::IndentCommand
- Then
- the contents should be "def f\n 1\nend"
Last published over 5 years ago by danlucraft.