Sha256: e685243c4777e0b18b0c9d07ab7ff315065ad01119b6ff7352e442e76840e4f4

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 overwrite "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.8 features/cli/help.feature
genomer-0.0.7 features/cli/help.feature