Sha256: c22906706bf52f994e0bc85db0dc6164ff2f871280829324727824f1fbf99c8d

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

Feature: Adding content to Trello
  Background:
    Given a list exists

  @pending @failing @add
  Scenario: Add a card
    Given the Trello API is stubbed with "add_card_success"
    When I run `troo add card 1 "My Cucumber Card"`
    Then the output should contain:
      """
      New card 'My Cucumber Card' created
      """

  @add
  Scenario: Add a card, name not provided
    Given the Trello API is stubbed with "add_card_failure"
    When I run `troo add card 1 ""`
    Then the output should contain "Card could not be created"

  @pending @failing @add
  Scenario: Add a card, name not provided
    Given the Trello API is stubbed with "add_card_interactive_success"
    When I run `troo --test add card 1`
    And I type "My New Exciting Card"
    Then the output should contain:
      """
      New card 'My New Exciting Card' created
      """

  @pending @failing @add
  Scenario: Cannot add a card as list not found
    Given the Trello API is stubbed with "add_card_list_not_found"
    When I run `troo add card 1 "My Cucumber Card"`
    Then the output should contain ""

Version data entries

1 entries across 1 versions & 1 rubygems

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