Sha256: 8f1eda86890db4464a913fd7a09b3ee08d056cc0d471760a9c1c7d73fb0e6e6c

Contents?: true

Size: 1.2 KB

Versions: 10

Compression:

Stored size: 1.2 KB

Contents

@command_line
Feature: How to check if Mirage is running

  Use the Mirage client api to check if Mirage is running either on the local machine or on a remote host.


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


  Scenario: Check if mirage is running on the local machine on the default port
    Given Mirage is not running
    Then I run
    """
      Mirage.running?.should == false
    """
    Given Mirage is running
    Then I run
    """
      Mirage.running?.should == true
    """


  Scenario: Check if mirage is running on the local machine on a non standard port
    Given I run 'mirage start -p 9001'
    Then I run
    """
      Mirage.running?(:port => 9001).should == true
    """


  Scenario: Checking if mirage is running on remote machine
    Given I run 'mirage start -p 9001'
    Then I run
    """
      Mirage.running? "http://localhost:9001"
    """


  Scenario: Check if mirage is running using the client directly
    Given I run 'mirage start -p 9001'
    Then I run
    """
      client = Mirage::Client.new "http://localhost:9001"
      client.running?.should == true
    """

Version data entries

10 entries across 10 versions & 2 rubygems

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