Sha256: e9873d2a102be4bd1d9b196fc63b9717d70fdbf3c5525b95abc363b1715c2e1b

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

Contents

Feature: Listing available commands
  In order to know which commands are available
  A user can use the help command
  To list the available options to the console

  Scenario: Running genomer with no commands
     When I run the genomer command with no arguments
     Then the exit status should be 0
      And the output should contain:
     """
     genomer COMMAND [options]
     run `genomer help` for a list of available commands

     """

  Scenario: Running genomer with the help command
     When I run the genomer command with the arguments "help"
     Then the exit status should be 0
      And the output should contain:
     """
     genomer COMMAND [options]

     Available commands:
     """
      And the output should contain:
     """
       init        Create a new genomer project
     """
      And the output should contain:
     """
       man         View man page for the specified plugin
     """

  @disable-bundler
  Scenario: Running help with a single genomer plugins specified
    Given I run the genomer command with the arguments "init project"
      And I cd to "project"
      And I append to "Gemfile" with:
      """
      gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
      """
     When I run the genomer command with the arguments "help"
     Then the exit status should be 0
      And the output should contain:
     """
       simple      Simple genomer plugin for testing purposes
     """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
genomer-0.0.6 features/cli/help.feature
genomer-0.0.5 features/cli/help.feature