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