Sha256: 709f4478f850817ef047431f30a87a3d88cf33beb02679e30e0770e918ee1662
Contents?: true
Size: 1.97 KB
Versions: 1
Compression:
Stored size: 1.97 KB
Contents
Feature: Rendering a static template In order to display a non-dynamic page As a designer I want to render a static template Scenario: Template exists Given this template exists at "static.nou.html" """ <h1>Static Template</h1> <p>This is a static template which does not have any fields.</p> """ And this content item exists at "/static" | template | static | When I view "/static" Then the page should load And the "Content-Type" header should be "text/html;charset=utf-8" And the headline should be "Static Template" And the body text should be "This is a static template which does not have any fields." Scenario: Template does not exist Given no template exists at "static.nou.html" And this content item exists at "/static" | template | static | When I view "/static" Then the page should return a 500 error And the "Content-Type" header should be "text/html;charset=utf-8" And the headline should be "Missing Template" And the body text should be "The template 'static' does not exist within the current theme." Scenario: Template is not specified Given this template exists at "default.nou.html" """ <h1>Default Template</h1> """ And this content item exists at "/default" | key | value | When I view "/default" Then the page should load And the "Content-Type" header should be "text/html;charset=utf-8" And the headline should be "Default Template" Scenario: Content item does not exist Given no content item exists at "/static" When I view "/static" Then the page should return a 404 error And the "Content-Type" header should be "text/html;charset=utf-8" And the headline should be "Page Not Found" Scenario: No content repository was configured Given no content repository has been configured When I view "/static" Then the page should return a 404 error And the headline should be "Page Not Found"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
noumenon-0.2.3 | features/template_rendering/static.feature |