Logo: Relish

  1. Sign in

Project: Content-service

HTML Fragments

The Content Service serves HTML fragment for all web applications.
HTML fragment returned for successful GET call.
404 returned for fragments that do not exist.

Scenarios
Requesting a fragment
Given
a file called 'test_fragment.haml' is in the fragments directory and contains:
some content
When
a GET request is sent to '/assets/fragments/test_fragment'
Then
a 200 should be received
And
the response should contain 'some content'

Last published over 4 years ago by lashd.