Sha256: fa563bf11531f1bd348c324cc28205892053c1c32f2612e1798e1eb49ef9223e

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

Feature: Showing comments

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

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

  @show
  Scenario: Cannot show comments; card not found
    Given the Trello API is stubbed with "400_card_by_id"
    When I run `troo show comments 400`
    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:
      """
      (1) 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.9 features/show/comment.feature