Sha256: 4e2988e05e8c014e52f827fb75e4437d53d34309e16aa99a28f3275201ab230c

Contents?: true

Size: 1.29 KB

Versions: 45

Compression:

Stored size: 1.29 KB

Contents

Feature: Replace current line with clipboard contents

Scenario: Replacing the current line
  When I open a new edit tab
  And I replace the contents with "21 eggs\n7 chickens\n3 henhouses\n1 farmer"
  And I copy text
  And I move the cursor to 10
  And I replace the line
  Then I should see "21 eggs\n21 eggs\n3 henhouses\n1 farmer" in the edit tab
  And I should not see "7 chickens" in the edit tab

Scenario: Replacing the current line with an empty clipboard
  When I open a new edit tab
  And I replace the contents with "21 eggs\n7 chickens\n3 henhouses\n1 farmer"
  And I replace the line
  Then I should see "21 eggs\n7 chickens\n3 henhouses\n1 farmer" in the edit tab

Scenario: Replacing the current selection
  When I open a new edit tab
  And I replace the contents with "21 eggs\n7 chickens\n3 henhouses\n1 farmer"
  And I select from 19 to 31
  And I copy text
  And I move the cursor to 10
  And I replace the line
  Then I should see "21 eggs\n3 henhouses\n3 henhouses\n1 farmer" in the edit tab

Scenario: Replacing the current line that has unicode
  When I open a new edit tab
  And I replace the contents with "21 eggs\n7 bść\n3 henhouses\n1 farmer"
  And I copy text
  And I move the cursor to 10
  And I replace the line
  Then the contents should be "21 eggs\n21 eggs\n3 henhouses\n1 farmer"

Version data entries

45 entries across 45 versions & 2 rubygems

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