Sha256: bffbfac76750a113e5226a95ad4b7edbd1fae10a0829fa6fd423dbfdca870f61

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 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 gems are required to run the Mirage client test code:
    """
    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

5 entries across 5 versions & 1 rubygems

Version Path
mirage-3.0.4 features/client/running.feature
mirage-3.0.3 features/client/running.feature
mirage-3.0.2 features/client/running.feature
mirage-3.0.1 features/client/running.feature
mirage-3.0.0 features/client/running.feature