Sha256: d2f0d65ea08f381235f5a732c7768cc199f8191d9e2a8ce5355f80b7af706152

Contents?: true

Size: 1.37 KB

Versions: 21

Compression:

Stored size: 1.37 KB

Contents

@command_line
Feature: Mirage is started from the command line.
  Mirage logs to mirage.log at the path where Mirage is started from


  Background: Mirage usage
    Given usage information:
      | Usage: mirage start\|stop [options] |
      | -p, --port PORT                     |
      | -d, --defaults DIR                  |


  Scenario: Starting with help option
    Given I run 'mirage --help'
    Then the usage information should be displayed


  Scenario: Starting with an invalid option
    Given I run 'mirage start --invalid-option'
    Then the usage information should be displayed


  Scenario: Starting mirage
    Given Mirage is not running
    When I run 'mirage start'
    Then mirage should be running on 'http://localhost:7001/mirage'
    And 'mirage.log' should exist


  Scenario: Stopping Mirage
    Given Mirage is running
    When I run 'mirage stop'
    Then Connection should be refused to 'http://localhost:7001/mirage'


  Scenario: Starting Mirage on a custom port
    Given Mirage is not running
    When I run 'mirage start -p 9001'
    Then mirage should be running on 'http://localhost:9001/mirage'

  Scenario: Starting Mirage when it is already running
    Given Mirage is running
    When I run 'mirage start -p 9001'
    Then I should see 'Mirage is already running' on the command line
    Then Connection should be refused to 'http://localhost:9001/mirage' 

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
mirage-2.2.2 features/server/command_line_iterface.feature
mirage-2.1.2 features/server/command_line_iterface.feature
mirage-2.0.16 features/server/command_line_iterface.feature
mirage-2.0.15 features/server/command_line_iterface.feature
mirage-2.0.14 features/server/command_line_iterface.feature
mirage-2.0.13 features/server/command_line_iterface.feature
mirage-2.0.12 features/server/command_line_iterface.feature
mirage-2.0.11 features/server/command_line_iterface.feature
mirage-2.0.10 features/server/command_line_iterface.feature
mirage-2.0.9 features/server/command_line_iterface.feature
mirage-2.0.8 features/server/command_line_iterface.feature
mirage-2.0.7 features/server/command_line_iterface.feature
mirage-2.0.6 features/server/command_line_iterface.feature
mirage-2.0.5 features/server/command_line_iterface.feature
mirage-2.0.4 features/server/command_line_iterface.feature
mirage-2.0.3 features/server/command_line_iterface.feature
mirage-2.0.2 features/server/command_line_iterface.feature
mirage-2.0.1 features/server/command_line_iterface.feature
mirage-2.0.0 features/server/command_line_iterface.feature
mirage-2.0.0.alpha4 features/server/command_line_iterface.feature