Sha256: dbaf1ce9989d1b1360a1915209d26f1939b4b9a1b87afe143ecf2fd7b6d36847

Contents?: true

Size: 1.32 KB

Versions: 15

Compression:

Stored size: 1.32 KB

Contents

Feature: Web interface
  Note: This feature is being rewritten but the screens pretty basic so take a look:

  The home page is served from '/' so by default is found at http://localhost:7001/

  Mirage's home page allows you to see what response are currently being hosted.
  From this page you can:
  - See all currently hosted templates
  - Preview at a Templates content
  - View the last request to trigger a particular Template


#  Background: There are already a couple of responses hosted on he Mirage server
#    Given the following template template:
#    """
#      {
#         "response":{
#            "body":"SGVsbG8="
#         },
#         "request":{
#         }
#      }
#    """
#    And the template is sent using PUT to '/templates/greeting'
#
#
#  Scenario: Using the home page to see what response are being hosted
#    Given I goto to the Mirage home page
#    Then I should see 'greeting/*'
#    Then I should see 'leaving'
#
#  Scenario: Using the home page to peek at a response
#    Given I goto ''
#    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 '/responses/greeting' with request entity
#    """
#    Yo!
#    """
#    Given I goto ''
#    When  I click 'track_response_1'
#    Then I should see 'Yo!'

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
mirage-3.0.13 features/web_user_interface.feature
mirage-3.0.12 features/web_user_interface.feature
mirage-3.0.11 features/web_user_interface.feature
mirage-3.0.10 features/web_user_interface.feature
mirage-3.0.9 features/web_user_interface.feature
mirage-on-thin-3.0.8 features/web_user_interface.feature
mirage-3.0.8 features/web_user_interface.feature
mirage-3.0.7 features/web_user_interface.feature
mirage-3.0.6 features/web_user_interface.feature
mirage-3.0.5 features/web_user_interface.feature
mirage-3.0.4 features/web_user_interface.feature
mirage-3.0.3 features/web_user_interface.feature
mirage-3.0.2 features/web_user_interface.feature
mirage-3.0.1 features/web_user_interface.feature
mirage-3.0.0 features/web_user_interface.feature