Sha256: 12fa17e8313951ee9936f5bcef2fe8b2a1d804f170682ac45ae37b3db6f5bbba

Contents?: true

Size: 1016 Bytes

Versions: 9

Compression:

Stored size: 1016 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/set/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

9 entries across 9 versions & 1 rubygems

Version Path
mirage-2.0.7 features/client/save_and_revert.feature
mirage-2.0.6 features/client/save_and_revert.feature
mirage-2.0.5 features/client/save_and_revert.feature
mirage-2.0.4 features/client/save_and_revert.feature
mirage-2.0.3 features/client/save_and_revert.feature
mirage-2.0.2 features/client/save_and_revert.feature
mirage-2.0.1 features/client/save_and_revert.feature
mirage-2.0.0 features/client/save_and_revert.feature
mirage-2.0.0.alpha4 features/client/save_and_revert.feature