Sha256: e4663311f5af615efcd5d48a8ec34d0b97187ea6dc0a7ef76dee45e315b1b3ce
Contents?: true
Size: 871 Bytes
Versions: 5
Compression:
Stored size: 871 Bytes
Contents
Feature: the Mirage client provides a method for getting responses There is no need to escape any parameters before using the client api as this is done for you. Background: Given the following gems are required to run the Mirage client test code: """ require 'rubygems' require 'rspec' require 'mirage' """ And I post to 'http://localhost:7001/mirage/set/greeting' with parameters: | response | hello | Scenario: getting a response Given I run """ Mirage::Client.new.get('greeting').should == 'hello' """ Scenario: getting a response that does not exist Given I run """ begin Mirage::Client.new.get('response_that_does_not_exits').should == 'hello' fail("Error should have been thrown") rescue Exception => e e.is_a?(Mirage::ResponseNotFound).should == true end """
Version data entries
5 entries across 5 versions & 1 rubygems