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

Version Path
mirage-3.0.0.alpha.11 features/client/save_and_revert.feature
mirage-3.0.0.alpha.10 features/client/save_and_revert.feature
mirage-3.0.0.alpha.9 features/client/save_and_revert.feature
mirage-3.0.0.alpha.8 features/client/save_and_revert.feature
mirage-3.0.0.alpha.7 features/client/save_and_revert.feature
mirage-3.0.0.alpha.6 features/client/save_and_revert.feature
mirage-3.0.0.alpha.5 features/client/save_and_revert.feature
mirage-3.0.0.alpha.4 features/client/save_and_revert.feature
mirage-3.0.0.alpha.3 features/client/save_and_revert.feature
mirage-3.0.0.alpha.2 features/client/save_and_revert.feature
mirage-3.0.0.alpha.1 features/client/save_and_revert.feature
mirage-2.4.2 features/client/save_and_revert.feature
mirage-2.4.1 features/client/save_and_revert.feature
mirage-2.4.0 features/client/save_and_revert.feature
mirage-2.3.0 features/client/save_and_revert.feature
mirage-2.2.3 features/client/save_and_revert.feature
mirage-2.2.2 features/client/save_and_revert.feature
mirage-2.1.2 features/client/save_and_revert.feature
mirage-2.0.16 features/client/save_and_revert.feature
mirage-2.0.15 features/client/save_and_revert.feature