Sha256: fceafee61ee2a6a23fbce1688a63930116aa22eb0d09aeca72b42bb075e868d6

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

Feature: Showing comments
  Background:
    Given a card exists
    And a member exists

  @show
  Scenario: Showing comments for a card with ID
    Given a comment exists
    When I run `troo show comments 1`
    Then the output should contain "My Test Comment"

  @show
  Scenario: Showing comments for a card with ID; no comments
    When I run `troo show comments 1`
    Then the output should contain "No comments"

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

  @show
  Scenario: Showing the comments for the default card
    Given a default card exists
    And a comment exists
    When I run `troo show comments`
    Then the output should contain:
      """
       * (67) My Default Card
          gavinlaking1:
          My Test Comment
              (Tue, Dec 17 at 22:01)
      """

  @show
  Scenario: Cannot show comments; no default card
    When I run `troo show comments`
    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/comment.feature