features/refresh/card.feature in troo-0.0.8 vs features/refresh/card.feature in troo-0.0.9
- old
+ new
@@ -1,27 +1,30 @@
Feature: Refreshing a card
@refresh
Scenario: Refresh the card with ID
- Given the Trello API is stubbed with "refresh_card_success"
+ Given the Trello API is stubbed with "200_card_by_id"
And a card exists
- When I run `troo refresh card 1`
+ 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 "refresh_card_not_found"
- When I run `troo refresh card 69`
+ 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 "refresh_default_card_success"
+ 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 "Default card cannot be found"
+ Then the output should contain:
+ """
+ Card cannot be found. Specify an <id> or use 'troo default card <id>' to set a default card first.
+ """