Sha256: 266a71e12957645eb912d89273eb96fbfa87034dec84649624a2d4127ec5d45f
Contents?: true
Size: 1022 Bytes
Versions: 27
Compression:
Stored size: 1022 Bytes
Contents
Feature: The Mirage client can be used to snaphsot and rollback the Mirage server Background: Given the following gems are required to run the Mirage client test code: """ require 'rubygems' require 'rspec' require 'mirage/client' """ And I send PUT to 'http://localhost:7001/mirage/templates/greeting' with request entity """ The default greeting """ Scenario: saving and reverting Given I run """ Mirage::Client.new.save """ And I send PUT to 'http://localhost:7001/mirage/templates/leaving' with request entity """ Goodbye """ And I send PUT to 'http://localhost:7001/mirage/templates/greeting' with request entity """ Changed """ When I run """ Mirage::Client.new.revert """ And I send GET to 'http://localhost:7001/mirage/responses/leaving' Then a 404 should be returned When I send GET to 'http://localhost:7001/mirage/responses/greeting' Then 'The default greeting' should be returned
Version data entries
27 entries across 27 versions & 1 rubygems