Sha256: cebe22edf8384a3a16f5bd6d98674fa3e9fa89f23abffde441895ff30a1f6c01

Contents?: true

Size: 1.43 KB

Versions: 10

Compression:

Stored size: 1.43 KB

Contents

@command_line
Feature: Stopping Mirage

  The client API can be used to stop instances of Mirage running on localhost.

  Background:
    Given the following require statements are needed:
    """
    require 'rubygems'
    require 'mirage/client'
    """

  Scenario: Stopping Mirage
    Given Mirage is running
    When I run
    """
    Mirage.stop
    """
    Then mirage should not be running on 'http://localhost:7001'


  Scenario: Stopping Mirage on custom port
    And I run 'mirage start -p 9001'
    When I run
    """
    Mirage.stop :port => 9001
    """
    Then mirage should not be running on 'http://localhost:9001'

  Scenario: Stopping multiple instances of Mirage
    Given I run 'mirage start -p 7001'
    And I run 'mirage start -p 9001'
    And I run 'mirage start -p 10001'
    When I run
    """
    Mirage.stop :port => [9001,10001]
    """
    Then mirage should be running on 'http://localhost:7001'
    Then mirage should not be running on 'http://localhost:9001'
    Then mirage should not be running on 'http://localhost:10001'


  Scenario: Stopping all instances of Mirage
    Given I run 'mirage start -p 7001'
    And I run 'mirage start -p 9001'
    And I run 'mirage start -p 10001'
    When I run
    """
    Mirage.stop :all
    """
    Then mirage should not be running on 'http://localhost:7001'
    Then mirage should not be running on 'http://localhost:9001'
    Then mirage should not be running on 'http://localhost:10001'

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
mirage-3.0.13 features/client/stop.feature
mirage-3.0.12 features/client/stop.feature
mirage-3.0.11 features/client/stop.feature
mirage-3.0.10 features/client/stop.feature
mirage-3.0.9 features/client/stop.feature
mirage-on-thin-3.0.8 features/client/stop.feature
mirage-3.0.8 features/client/stop.feature
mirage-3.0.7 features/client/stop.feature
mirage-3.0.6 features/client/stop.feature
mirage-3.0.5 features/client/stop.feature