Sha256: 37c7b0d2b526f555a05160d13c811cdf7c18378f2f6ebad6c41b622bbcba5153

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

Feature: Refreshing a card

  @refresh
  Scenario: Refresh the card with ID
    Given the Trello API is stubbed with "200_card_by_id"
    And a card exists
    When I run `troo refresh card 200`
    Then the output should contain "refreshed"

  @refresh
  Scenario: Cannot refresh; card not found
    Given the Trello API is stubbed with "400_card_by_id"
    When I run `troo refresh card 400`
    Then the output should contain "Card cannot be found"

  @refresh
  Scenario: Refresh the default card
    Given the Trello API is stubbed with "200_card_by_id"
    And a default card exists
    When I run `troo refresh card`
    Then the output should contain "refreshed"

  @refresh
  Scenario: Cannot refresh; no default card
    When I run `troo refresh card`
    Then the output should contain:
      """
      Card cannot be found. Specify an <id> or use 'troo default card <id>' to set a default card first.
      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.9 features/refresh/card.feature