Sha256: d6710207afe288c32666b1903694b68cc14bed4cb76d08ab7b8089c7255893da

Contents?: true

Size: 886 Bytes

Versions: 10

Compression:

Stored size: 886 Bytes

Contents

Feature: Creating snapshots

  The client can be used to snapshot and rollback the Mirage server


  Background:
    Given the following require statements are needed:
    """
    require 'rubygems'
    require 'rspec/expectations'
    require 'mirage/client'
    """
    And a template for 'greeting' has been set with a value of 'The default greeting'


  Scenario: Creating a snapshot and rolling back
    Given I run
    """
    Mirage::Client.new.save
    """
    And I send PUT to '/templates/leaving' with request entity
    """
    Goodbye
    """

    And I send PUT to '/templates/greeting' with request entity
    """
    Changed
    """

    When I run
    """
    Mirage::Client.new.revert
    """
    And GET is sent to '/responses/leaving'
    Then a 404 should be returned

    When GET is sent to '/responses/greeting'
    Then 'The default greeting' should be returned

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
mirage-3.0.13 features/client/save_and_revert.feature
mirage-3.0.12 features/client/save_and_revert.feature
mirage-3.0.11 features/client/save_and_revert.feature
mirage-3.0.10 features/client/save_and_revert.feature
mirage-3.0.9 features/client/save_and_revert.feature
mirage-on-thin-3.0.8 features/client/save_and_revert.feature
mirage-3.0.8 features/client/save_and_revert.feature
mirage-3.0.7 features/client/save_and_revert.feature
mirage-3.0.6 features/client/save_and_revert.feature
mirage-3.0.5 features/client/save_and_revert.feature