Sha256: 6cd747a59929a6480dd51d28bd683479630e7fc8ce2310b1b6f009cb07a69e2a
Contents?: true
Size: 857 Bytes
Versions: 18
Compression:
Stored size: 857 Bytes
Contents
Feature: the client can be used for peeking at responses hosted on Mirage. Background: Given the following gems are required to run the Mirage client test code: """ require 'rubygems' require 'rspec' require 'mirage' """ Scenario: peeking a response Given I hit 'http://localhost:7001/mirage/set/greeting' with parameters: | response | Hello | When I run """ Mirage::Client.new.peek(1).should == 'Hello' """ When I hit 'http://localhost:7001/mirage/check/1' Then a 404 should be returned Scenario: getting a response that does not exist Given I run """ begin Mirage::Client.new.peek(2).should == 'this should not have happened' fail("Error should have been thrown") rescue Exception => e e.is_a?(Mirage::ResponseNotFound).should == true end """
Version data entries
18 entries across 18 versions & 1 rubygems