Sha256: adf58340d3f26a39ce263de57ac8115a368ac9ac369542bc8262671070dc1441

Contents?: true

Size: 1.46 KB

Versions: 6

Compression:

Stored size: 1.46 KB

Contents

Feature: Moving a card

  @move
  Scenario: Move a card to another list
    Given the Trello API is stubbed with "200_move_card_200_list"
    And a card exists
    And a list exists
    When I run `troo move 20020 20040`
    Then the output should contain:
      """
      Card 'My Test Card' moved to 'My Test List'.
      """

  @move
  Scenario: Cannot move card, card not found
    Given the Trello API is stubbed with "400_move_card_200_list"
    When I run `troo move 400 20040`
    Then the output should contain:
      """
      Card cannot be found.
      """

  @move
  Scenario: Cannot move card, list not found
    Given the Trello API is stubbed with "200_move_card_400_list"
    And a card exists
    When I run `troo move 20020 400`
    Then the output should contain:
      """
      List cannot be found.
      """

  @move
  Scenario: Move a card to another list (different board)
    Given the Trello API is stubbed with "200_move_card_200_board"
    And a card exists
    And a list exists
    And a board exists
    When I run `troo move 20020 20040 20010`
    Then the output should contain:
      """
      Card 'My Test Card' moved to 'My Test List' on 'My Test Board'.
      """

  @move
  Scenario: Cannot move card, board not found
    Given the Trello API is stubbed with "400_move_card_400_board"
    And a card exists
    And a list exists
    When I run `troo move 20020 20040 400`
    Then the output should contain:
      """
      Board cannot be found.
      """

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
troo-0.0.15 features/move/card.feature
troo-0.0.14 features/move/card.feature
troo-0.0.13 features/move/card.feature
troo-0.0.12 features/move/card.feature
troo-0.0.11 features/move/card.feature
troo-0.0.10 features/move/card.feature