Sha256: c206dc87f72da4ce51972f5cf3f332a3f0bec1b78d2f8384197c4124bbe96a75

Contents?: true

Size: 1.7 KB

Versions: 25

Compression:

Stored size: 1.7 KB

Contents

Feature: Indentation commands

  Scenario: 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 "  "
    
  Scenario: 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 "  "

  Scenario: 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 "   "
    
  Scenario: 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 "   "

  Scenario: 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"
    
  Scenario: 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"
    
  Scenario: 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"

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
redcar-0.11.0dev plugins/edit_view/features/indentation_commands.feature
redcar-0.10 plugins/edit_view/features/indentation_commands.feature
redcar-0.9.2 plugins/edit_view/features/indentation_commands.feature
redcar-0.9.1 plugins/edit_view/features/indentation_commands.feature
redcar-0.9.0 plugins/edit_view/features/indentation_commands.feature
redcar-0.8.1 plugins/edit_view/features/indentation_commands.feature
redcar-0.8 plugins/edit_view/features/indentation_commands.feature
redcar-0.7 plugins/edit_view/features/indentation_commands.feature
redcar-0.6.1 plugins/edit_view/features/indentation_commands.feature
redcar-0.6 plugins/edit_view/features/indentation_commands.feature
redcar-0.6.1dev plugins/edit_view/features/indentation_commands.feature
redcar-0.5.1 plugins/edit_view/features/indentation_commands.feature
redcar-0.5 plugins/edit_view/features/indentation_commands.feature
redcar-0.5.6dev plugins/edit_view/features/indentation_commands.feature
redcar-0.5.5dev plugins/edit_view/features/indentation_commands.feature
redcar-0.5.4dev plugins/edit_view/features/indentation_commands.feature
redcar-0.5.3dev plugins/edit_view/features/indentation_commands.feature
redcar-0.5.2dev plugins/edit_view/features/indentation_commands.feature
redcar-0.5.1dev plugins/edit_view/features/indentation_commands.feature
redcar-0.4.1 plugins/edit_view/features/indentation_commands.feature