Sha256: 0179544a5b4319a25833277f156fe5756605408ceaf64b687fb35fb26771acd9

Contents?: true

Size: 1.24 KB

Versions: 22

Compression:

Stored size: 1.24 KB

Contents

Feature: Strip Trailing Spaces
  As a user
  I sometimes want my editor to split trailing spaces on save

  Background:
    Given I will choose "plugins/strip_trailing_spaces/features/fixtures/test.txt" from the "open_file" dialog
    And I open a file
    And I replace the contents with "Hi \n \n Foo \n"

  Scenario: Strip spaces on save
    When I click "Enabled" from the "Plugins/Strip Trailing Spaces" menu
    When I click "Strip Blank Lines" from the "Plugins/Strip Trailing Spaces" menu
    And I save the tab
    Then I should see "Hi\n\n Foo\n" in the edit tab

  Scenario: Keep cursor position on save
    When I move the cursor to 8
    And I save the tab
    Then the contents should be "Hi\n\n F<c>oo\n"

  Scenario: Keep closest cursor position on save
    When I move the cursor to 5
    And I save the tab
    Then the contents should be "Hi\n<c>\n Foo\n"

  Scenario: Strip spaces, but not newlines on save
    When I click "Strip Blank Lines" from the "Plugins/Strip Trailing Spaces" menu
    And I save the tab
    Then I should see "Hi\n \n Foo\n" in the edit tab

  Scenario: Strip nothing on save
    When I click "Enabled" from the "Plugins/Strip Trailing Spaces" menu
    And I save the tab
    Then I should see "Hi \n \n Foo \n" in the edit tab

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
redcar-dev-0.12.17dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.16dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.15dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.14dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.13dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.12dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.11dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.10dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.9dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.8dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.7dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.6dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.4dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.3dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.1dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.0dev-java plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-0.11 plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-0.11.0dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-0.10 plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-0.9.2 plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature