Sha256: d1e7e205e38899ef63dbbdba165d598b2da6fbc4babfb831f3fa4dec66347ea5

Contents?: true

Size: 1.96 KB

Versions: 1

Compression:

Stored size: 1.96 KB

Contents

Feature: Help with aka
  In order to learn how to use aka
  I want to view help info in the command-line
  So I don't have to scour the web for information

  Background:
    Given I set the environment variables to:
    | variable | value |
    | NO_MAN   | 1     |

  Scenario: Run aka
    When I run `aka`
    Then the exit status should be 0
    And the output should contain:
    """
    aka - Manage Shell Keyboard Shortcuts
    """

  Scenario: Get help
    When I run `aka --help`
    Then the exit status should be 0
    And the output should contain:
    """
    aka - Manage Shell Keyboard Shortcuts
    """

  Scenario: Get version
    When I run `aka --version`
    Then the exit status should be 0
    And the output should contain exactly:
    """
    aka version 0.1.0

    """

  Scenario: Help creating new shortcut
    When I run `aka -h add`
    Then the exit status should be 0
    And the output should contain:
    """
    aka-add - Add keyboard shortcuts
    """

  Scenario: Help listing shortcuts
    When I run `aka -h list`
    Then the exit status should be 0
    And the output should contain:
    """
    aka-list - List keyboard shortcuts
    """

  Scenario: Help generating shortcuts
    When I run `aka -h generate`
    Then the exit status should be 0
    And the output should contain "aka-generate"
    And the output should contain "Generate  commands for loading keyboard shortcuts into"

  Scenario: Help removing shortcuts
    When I run `aka -h remove`
    Then the exit status should be 0
    And the output should contain:
    """
    aka-remove - Remove keyboard shortcuts
    """

  Scenario: Help showing shortcuts
    When I run `aka -h show`
    Then the exit status should be 0
    And the output should contain:
    """
    aka-show - Show keyboard shortcuts
    """

  Scenario: Help editing shortcuts
    When I run `aka -h edit`
    Then the exit status should be 0
    And the output should contain:
    """
    aka-edit - Edit keyboard shortcuts
    """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hsume2-aka-0.1.0 features/aka/help.feature