Sha256: 1a0a85e887448f83db0220512907c429bbd0dee78e9f50a90721d6dcf4439fc2

Contents?: true

Size: 1.05 KB

Versions: 28

Compression:

Stored size: 1.05 KB

Contents

Feature: Having set up the Mirage with a number of defaults, your tests may continue to change its state.
  Clearing and resetting all of your responses, potentially hundreds of times, can be time expensive.

  Mirage provides the ability to save of its current state and to revert it back to that state.

  Background: The MockServer has been setup with some default responses
    Given I send PUT to 'http://localhost:7001/mirage/templates/greeting' with body 'The default greeting'

    
  Scenario: Saving Mirage and reverting it
    And I send PUT to 'http://localhost:7001/mirage/backup'
    
    Given I send PUT to 'http://localhost:7001/mirage/templates/leaving' with body 'Goodbye'
    And I send PUT to 'http://localhost:7001/mirage/templates/greeting' with body 'Changed'
    
    And I send PUT to 'http://localhost:7001/mirage'

    When 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

28 entries across 28 versions & 1 rubygems

Version Path
mirage-2.4.2 features/server/save_and_revert.feature
mirage-2.4.1 features/server/save_and_revert.feature
mirage-2.4.0 features/server/save_and_revert.feature
mirage-2.3.0 features/server/save_and_revert.feature
mirage-2.2.3 features/server/save_and_revert.feature
mirage-2.2.2 features/server/save_and_revert.feature
mirage-2.1.2 features/server/save_and_revert.feature
mirage-2.0.16 features/server/save_and_revert.feature
mirage-2.0.15 features/server/save_and_revert.feature
mirage-2.0.14 features/server/save_and_revert.feature
mirage-2.0.13 features/server/save_and_revert.feature
mirage-2.0.12 features/server/save_and_revert.feature
mirage-2.0.11 features/server/save_and_revert.feature
mirage-2.0.10 features/server/save_and_revert.feature
mirage-2.0.9 features/server/save_and_revert.feature
mirage-2.0.8 features/server/save_and_revert.feature
mirage-2.0.7 features/server/save_and_revert.feature
mirage-2.0.6 features/server/save_and_revert.feature
mirage-2.0.5 features/server/save_and_revert.feature
mirage-2.0.4 features/server/save_and_revert.feature