2010-09-06 13:59:51 -04:00
|
|
|
Feature: Builder
|
|
|
|
In order to output static html and css for delivery
|
|
|
|
|
|
|
|
Scenario: Checking built folder for content
|
2011-07-27 22:59:38 -04:00
|
|
|
Given a built app at "test-app"
|
|
|
|
Then "index.html" should exist at "test-app" and include "Comment in layout"
|
|
|
|
Then "javascripts/coffee_test.js" should exist at "test-app" and include "Array.prototype.slice"
|
|
|
|
Then "index.html" should exist at "test-app" and include "<h1>Welcome</h1>"
|
|
|
|
Then "static.html" should exist at "test-app" and include "Static, no code!"
|
|
|
|
Then "services/index.html" should exist at "test-app" and include "Services"
|
|
|
|
Then "stylesheets/site.css" should exist at "test-app" and include "html, body, div, span"
|
|
|
|
Then "stylesheets/site_scss.css" should exist at "test-app" and include "html, body, div, span"
|
|
|
|
Then "stylesheets/static.css" should exist at "test-app" and include "body"
|
|
|
|
Then "_partial.html" should not exist at "test-app"
|
|
|
|
Then "spaces in file.html" should exist at "test-app" and include "spaces"
|
|
|
|
Then "images/Read me (example).txt" should exist at "test-app"
|
|
|
|
Then "images/Child folder/regular_file(example).txt" should exist at "test-app"
|
2011-11-27 23:22:51 -05:00
|
|
|
Then ".htaccess" should exist at "test-app"
|
2011-04-19 17:24:21 -04:00
|
|
|
|
2011-09-12 19:15:51 -04:00
|
|
|
Scenario: Build glob
|
2011-11-08 01:34:02 -05:00
|
|
|
Given a built app at "glob-app" with flags "--glob '*.css'"
|
2011-09-12 19:15:51 -04:00
|
|
|
Then "stylesheets/site.css" should exist at "glob-app" and include "html"
|
|
|
|
Then "index.html" should not exist at "glob-app"
|
|
|
|
|
2011-08-06 01:13:21 -04:00
|
|
|
# Scenario: Force relative assets
|
|
|
|
# Given a built app at "relative-app" with flags "--relative"
|
|
|
|
# Then "stylesheets/relative_assets.css" should exist at "relative-app" and include "../"
|