Sha256: f3a7791ac011a202847dba28b8fa93563a1864ce538982208bbad58dc51da5ba

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

Feature: Showing a card
  Background:
    Given a board exists
    And a list exists
    And a member exists

  @show
  Scenario: Showing a card with ID
    Given a card exists
    When I run `troo show card 1`
    Then the output should contain:
      """
       (67) My Test Card

      Description:
      some description

      Comments:
      No comments have been left.

      Members:
      @gavinlaking1

      Metadata:
         Board:    (1) My Test Board
          List:    (1) My Test List
       Updated: Tue, Dec 17 at 21:48
      """

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

  @show
  Scenario: Showing the default card
    Given a default card exists
    When I run `troo show card`
    Then the output should contain:
      """
      * (67) My Default Card

      Description:
      some description

      Comments:
      No comments have been left.

      Members:
      @gavinlaking1

      Metadata:
         Board:    (1) My Test Board
          List:    (1) My Test List
       Updated: Tue, Dec 17 at 21:48
      """

  @show
  Scenario: Cannot show; no default card
    When I run `troo show card`
    Then the output should contain "set a default card first"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 features/show/card.feature