Sha256: 42c56d0d7817368d6e71adc0c0d69b820cf50135d5e9b669c3c91c422099ff73

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

@options
Feature: Reek can be controlled using command-line options
  In order to change reek's default behaviour
  As a developer
  I want to supply options on the command line

  Scenario: return non-zero status on bad option
    When I run reek --no-such-option
    Then the exit status indicates an error
    And it reports the error "Error: invalid option: --no-such-option"
    And stdout equals ""

  Scenario: display the current version number
    When I run reek --version
    Then it succeeds
    And it reports the current version

  Scenario: display the help information
    When I run reek --help
    Then it succeeds
    And it reports:
      """
      Usage: reek [options] [files]

      Examples:

      reek lib/*.rb
      reek -q -a lib
      cat my_class.rb | reek

      See http://wiki.github.com/kevinrutherford/reek for detailed help.

      Common options:
          -h, --help                       Show this message
          -v, --version                    Show version


      Report formatting:
          -a, --[no-]show-all              Show all smells, including those masked by config settings
          -q, --[no-]quiet                 Suppress headings for smell-free source files
          -y, --yaml                       Report smells in YAML format

      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reek-1.2.7.2 features/options.feature
reek-1.2.7.1 features/options.feature
reek-1.2.7 features/options.feature