Sha256: 2cdf4e7e31153018c84cf48e341ff383c057c60eb3fefb69b546af2647f106e9

Contents?: true

Size: 1.23 KB

Versions: 19

Compression:

Stored size: 1.23 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 select menu item "Plugins/Strip Trailing Spaces/Enabled"
    When I select menu item "Plugins/Strip Trailing Spaces/Strip Blank Lines" 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 select menu item "Plugins/Strip Trailing Spaces/Strip Blank Lines" 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 select menu item "Plugins/Strip Trailing Spaces/Enabled"
    And I save the tab
    Then I should see "Hi \n \n Foo \n" in the edit tab

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
redcar-0.13 plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.13.5dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.13.4dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.13.3dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.13.2dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.13.1dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-0.12.1 plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.13.0dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-0.12 plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.27dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.26dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.25dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.24dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.23dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.22dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.21dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.20dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.19dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature
redcar-dev-0.12.18dev plugins/strip_trailing_spaces/features/strip_trailing_spaces.feature