Sha256: bfe7e3426463fe432089bd0bf19c825237602e2a4a50e5c64a080321b15658da
Contents?: true
Size: 823 Bytes
Versions: 10
Compression:
Stored size: 823 Bytes
Contents
Feature: Priming Mirage The client can be used to prime Mirage with Templates found in the templates directory that was configured when Mirage was started. Background: Given the following require statements are needed: """ require 'rubygems' require 'rspec/expectations' require 'mirage/client' """ Scenario: Priming Mirage Given Mirage is not running And I run 'mirage start' When the file 'mirage/default_greetings.rb' contains: """ prime do |mirage| mirage.put('greeting', 'hello') mirage.put('leaving', 'goodbye') end """ And I run """ Mirage::Client.new.prime """ And GET is sent to '/responses/greeting' Then 'hello' should be returned When GET is sent to '/responses/leaving' Then 'goodbye' should be returned
Version data entries
10 entries across 10 versions & 2 rubygems