Sha256: af9b5d55c46ab61b6c9271de930ed8bf26f3ee493bba2e3167fd5b41974ba57b

Contents?: true

Size: 865 Bytes

Versions: 6

Compression:

Stored size: 865 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 a template for 'greeting' has been set with a value of 'The default greeting'


  Scenario: saving and reverting
    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

6 entries across 6 versions & 1 rubygems

Version Path
mirage-3.0.0.alpha.17 features/client/save_and_revert.feature
mirage-3.0.0.alpha.16 features/client/save_and_revert.feature
mirage-3.0.0.alpha.15 features/client/save_and_revert.feature
mirage-3.0.0.alpha.14 features/client/save_and_revert.feature
mirage-3.0.0.alpha.13 features/client/save_and_revert.feature
mirage-3.0.0.alpha.12 features/client/save_and_revert.feature