Sha256: 8c36c7f918b2b01bcc37916ff94a3de623b323f6320f45aeef20b94bb36e2d0f

Contents?: true

Size: 1.49 KB

Versions: 4

Compression:

Stored size: 1.49 KB

Contents

@active
Feature: Templates
  As a user, I should be able to list available
  templates and choose one.

  Scenario: List Templates (implicit)
    Given a file located at "/tmp/pp/.pinpress" with the contents:
    """
    ---
    pinpress:
      config_location: "/tmp/pp/.pinpress"
      default_pin_template: pinpress_default
      default_tag_template: pinpress_default
      log_level: WARN
      version: 1.1.1
      api_token: bachya:12345
    pin_templates:
    - name: pinpress_default
    tag_templates:
    - name: pinpress_default
    """
    When I run `pinpress templates` interactively
    Then the exit status should be 0
    And the output should contain:
    """
    ---> AVAILABLE PIN TEMPLATES:
    # 1. pinpress_default
    ---> AVAILABLE TAG TEMPLATES:
    # 1. pinpress_default
    """

  Scenario: List Templates (explicit)
    Given a file located at "/tmp/pp/.pinpress" with the contents:
    """
    ---
    pinpress:
      config_location: "/tmp/pp/.pinpress"
      default_pin_template: pinpress_default
      default_tag_template: pinpress_default
      log_level: WARN
      version: 1.1.1
      api_token: bachya:12345
    pin_templates:
    - name: pinpress_default
    tag_templates:
    - name: pinpress_default
    """
    When I run `pinpress templates list` interactively
    Then the exit status should be 0
      And the output should contain:
      """
      ---> AVAILABLE PIN TEMPLATES:
      # 1. pinpress_default
      ---> AVAILABLE TAG TEMPLATES:
      # 1. pinpress_default
      """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pinpress-1.2.2 features/3.templates.feature
pinpress-1.2.1 features/3.templates.feature
pinpress-1.2.0 features/3.templates.feature
pinpress-1.1.2 features/3.templates.feature