Sha256: 90ea12e95b8fda7431d8e86feb060ba02f3eddffd23bd94951fadafda86ab256

Contents?: true

Size: 938 Bytes

Versions: 13

Compression:

Stored size: 938 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: saving and reverting
    Given I run
    """
    Mirage::Client.new.save
    """
    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.revert
    """
    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

13 entries across 13 versions & 1 rubygems

Version Path
mirage-1.3.6 features/client/save_and_revert.feature
mirage-1.3.5 features/client/save_and_revert.feature
mirage-1.3.4 features/client/save_and_revert.feature
mirage-1.3.3 features/client/save_and_revert.feature
mirage-1.3.2 features/client/save_and_revert.feature
mirage-1.3.1 features/client/save_and_revert.feature
mirage-1.3.0 features/client/save_and_revert.feature
mirage-1.2.0 features/client/save_and_revert.feature
mirage-1.1.0 features/client/save_and_revert.feature
mirage-1.0.2 features/client/save_and_revert.feature
mirage-1.0.1 features/client/save_and_revert.feature
mirage-1.0.0 features/client/save_and_revert.feature
mirage-0.1.7 features/client/snapshotting.feature