Sha256: 1a31a5f1285c5e080f00889e390f7d71671fb891f1272c7654593b63c51cc8a6

Contents?: true

Size: 1.03 KB

Versions: 15

Compression:

Stored size: 1.03 KB

Contents

@command_line
Feature: Starting Mirage

  The client can be used to start Mirage.

  Both the port and default templates directory can be specified

  On starting Mirage a client is returned.


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

  Scenario: Starting Mirage on the default port
    When I run
    """
    Mirage.start
    """
    Then mirage should be running on 'http://localhost:7001'


  Scenario: Starting Mirage on a custom port
    When I run
    """
    Mirage.start :port => 9001
    """
    Then mirage should be running on 'http://localhost:9001'


  Scenario: Specifying a custom templates directory.
    And the file './custom_responses_location/default_greetings.rb' contains:
    """
    prime do |mirage|
      mirage.templates.put('greeting', 'hello')
    end
    """
    When I run
    """
    Mirage.start :defaults => './custom_responses_location'
    """
    And GET is sent to '/responses/greeting'
    Then 'hello' should be returned

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
mirage-3.0.13 features/client/start.feature
mirage-3.0.12 features/client/start.feature
mirage-3.0.11 features/client/start.feature
mirage-3.0.10 features/client/start.feature
mirage-3.0.9 features/client/start.feature
mirage-on-thin-3.0.8 features/client/start.feature
mirage-3.0.8 features/client/start.feature
mirage-3.0.7 features/client/start.feature
mirage-3.0.6 features/client/start.feature
mirage-3.0.5 features/client/start.feature
mirage-3.0.4 features/client/start.feature
mirage-3.0.3 features/client/start.feature
mirage-3.0.2 features/client/start.feature
mirage-3.0.1 features/client/start.feature
mirage-3.0.0 features/client/start.feature