Sha256: c9911e6683390d5cf56b7131c490bd4810f37c1c82dcb5b0a215572ac38f7098

Contents?: true

Size: 1.18 KB

Versions: 6

Compression:

Stored size: 1.18 KB

Contents

@command_line
Feature: 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 gems are required to run the Mirage client test code:
    """
    require 'rubygems'
    require 'rspec'
    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

6 entries across 6 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.17 features/client/running.feature
mirage-3.0.0.alpha.16 features/client/running.feature
mirage-3.0.0.alpha.15 features/client/running.feature
mirage-3.0.0.alpha.14 features/client/running.feature
mirage-3.0.0.alpha.13 features/client/running.feature
mirage-3.0.0.alpha.12 features/client/running.feature