Sha256: d6286e5efab7e17b3010acae1943c9227b8b39322908f4b2cc22247de69287c6
Contents?: true
Size: 1.2 KB
Versions: 10
Compression:
Stored size: 1.2 KB
Contents
Feature: Mirage's home page allows you to see what response are currently being hosted. From this page you can: - Peek at a responses content - Track the response to see if a request has been made to it #TODO tests needed for displaying pattern and delay values Background: There are already a couple of responses hosted on he Mirage server Given I hit 'http://localhost:7001/mirage/set/greeting' with parameters: | response | hello | | default | true | And I hit 'http://localhost:7001/mirage/set/leaving' with parameters: | response | goodbye | Scenario: Using the home page to see what response are being hosted Given I goto 'http://localhost:7001/mirage' Then I should see 'greeting/*' Then I should see 'leaving' Scenario: Using the home page to peek at a response Given I goto 'http://localhost:7001/mirage' When I click 'peek_response_1' Then I should see 'hello' Scenario: Using the home page to track if a request has been made Given I hit 'http://localhost:7001/mirage/get/greeting' with request body: """ Yo! """ Given I goto 'http://localhost:7001/mirage' When I click 'track_response_1' Then I should see 'Yo!'
Version data entries
10 entries across 10 versions & 1 rubygems