Sha256: 6f70a9018c2b4954aa78d4f7146513acc9d1b0e1f3f6cf332a2b24a929a76af7

Contents?: true

Size: 961 Bytes

Versions: 5

Compression:

Stored size: 961 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'
    """
    And I hit 'http://localhost:7001/mirage/set/greeting' with parameters:
      | response | The default greeting |


  Scenario: Taking a snapshot and rolling it back
    Given I run
    """
    Mirage::Client.new.snapshot
    """
    And I hit 'http://localhost:7001/mirage/set/leaving' with parameters:
      | response | Goodye |

    And I hit 'http://localhost:7001/mirage/set/greeting' with parameters:
      | response | Changed |

    When I run
    """
    Mirage::Client.new.rollback
    """
    And I hit 'http://localhost:7001/mirage/get/leaving'
    Then a 404 should be returned

    When I hit 'http://localhost:7001/mirage/get/greeting'
    Then 'The default greeting' should be returned

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mirage-0.1.6 features/client/snapshotting.feature
mirage-0.1.5 features/client/snapshotting.feature
mirage-0.1.4 features/client/snapshotting.feature
mirage-0.1.3 features/client/snapshotting.feature
mirage-0.1.2 features/client/snapshotting.feature