Sha256: 9afc3d8044ab2aa1d7a0115fcf7388362e5f13fb5d1c0c46ca1d67e1a0085864
Contents?: true
Size: 1.26 KB
Versions: 39
Compression:
Stored size: 1.26 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 and http method Background: There are already a couple of responses hosted on he Mirage server Given I send PUT to 'http://localhost:7001/mirage/templates/greeting' with body 'hello' and headers: | X-mirage-default | true | | X-mirage-method | POST | And I send PUT to 'http://localhost:7001/mirage/templates/leaving' with body '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 send POST to 'http://localhost:7001/mirage/responses/greeting' with request entity """ Yo! """ Given I goto 'http://localhost:7001/mirage' When I click 'track_response_1' Then I should see 'Yo!'
Version data entries
39 entries across 39 versions & 1 rubygems