Sha256: 6cd747a59929a6480dd51d28bd683479630e7fc8ce2310b1b6f009cb07a69e2a

Contents?: true

Size: 857 Bytes

Versions: 18

Compression:

Stored size: 857 Bytes

Contents

Feature: the client can be used for peeking at responses hosted on Mirage.

  Background:
    Given the following gems are required to run the Mirage client test code:
    """
    require 'rubygems'
    require 'rspec'
    require 'mirage'
    """

  Scenario: peeking a response
    Given I hit 'http://localhost:7001/mirage/set/greeting' with parameters:
      | response | Hello |

    When I run
    """
      Mirage::Client.new.peek(1).should == 'Hello'
    """

    When I hit 'http://localhost:7001/mirage/check/1'
    Then a 404 should be returned

  Scenario: getting a response that does not exist
    Given I run
    """
    begin
      Mirage::Client.new.peek(2).should == 'this should not have happened'
      fail("Error should have been thrown")
    rescue Exception => e
      e.is_a?(Mirage::ResponseNotFound).should == true
    end
    """

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
mirage-1.3.6 features/client/peek.feature
mirage-1.3.5 features/client/peek.feature
mirage-1.3.4 features/client/peek.feature
mirage-1.3.3 features/client/peek.feature
mirage-1.3.2 features/client/peek.feature
mirage-1.3.1 features/client/peek.feature
mirage-1.3.0 features/client/peek.feature
mirage-1.2.0 features/client/peek.feature
mirage-1.1.0 features/client/peek.feature
mirage-1.0.2 features/client/peek.feature
mirage-1.0.1 features/client/peek.feature
mirage-1.0.0 features/client/peek.feature
mirage-0.1.7 features/client/peeking.feature
mirage-0.1.6 features/client/peeking.feature
mirage-0.1.5 features/client/peeking.feature
mirage-0.1.4 features/client/peeking.feature
mirage-0.1.3 features/client/peeking.feature
mirage-0.1.2 features/client/peeking.feature