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