Sha256: bfe7e3426463fe432089bd0bf19c825237602e2a4a50e5c64a080321b15658da

Contents?: true

Size: 823 Bytes

Versions: 10

Compression:

Stored size: 823 Bytes

Contents

Feature: Priming Mirage

  The client can be used to prime Mirage with Templates found in the templates directory that was configured when Mirage was started.

  Background:
    Given the following require statements are needed:
    """
    require 'rubygems'
    require 'rspec/expectations'
    require 'mirage/client'
    """

  Scenario: Priming Mirage
    Given Mirage is not running
    And I run 'mirage start'

    When the file 'mirage/default_greetings.rb' contains:
    """
    prime do |mirage|
      mirage.put('greeting', 'hello')
      mirage.put('leaving', 'goodbye')
    end
    """
    And I run
    """
    Mirage::Client.new.prime
    """
    And GET is sent to '/responses/greeting'
    Then 'hello' should be returned

    When GET is sent to '/responses/leaving'
    Then 'goodbye' should be returned

Version data entries

10 entries across 10 versions & 2 rubygems

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