mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
prep rc release
This commit is contained in:
parent
5c2defac6d
commit
7c266d9e85
9 changed files with 22 additions and 2 deletions
|
@ -3,10 +3,12 @@ Feature: Alternate between multiple asset hosts
|
||||||
|
|
||||||
Scenario: Rendering css with the feature enabled
|
Scenario: Rendering css with the feature enabled
|
||||||
Given I am using an asset host
|
Given I am using an asset host
|
||||||
|
And the Server is running
|
||||||
When I go to "/stylesheets/asset_host.css"
|
When I go to "/stylesheets/asset_host.css"
|
||||||
Then I should see "http://assets"
|
Then I should see "http://assets"
|
||||||
|
|
||||||
Scenario: Rendering html with the feature enabled
|
Scenario: Rendering html with the feature enabled
|
||||||
Given I am using an asset host
|
Given I am using an asset host
|
||||||
|
And the Server is running
|
||||||
When I go to "/asset_host.html"
|
When I go to "/asset_host.html"
|
||||||
Then I should see "http://assets"
|
Then I should see "http://assets"
|
|
@ -3,12 +3,14 @@ Feature: Automatically detect and insert image dimensions into tags
|
||||||
|
|
||||||
Scenario: Rendering an image with the feature disabled
|
Scenario: Rendering an image with the feature disabled
|
||||||
Given "automatic_image_sizes" feature is "disabled"
|
Given "automatic_image_sizes" feature is "disabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/auto-image-sizes.html"
|
When I go to "/auto-image-sizes.html"
|
||||||
Then I should not see "width="
|
Then I should not see "width="
|
||||||
And I should not see "height="
|
And I should not see "height="
|
||||||
|
|
||||||
Scenario: Rendering an image with the feature enabled
|
Scenario: Rendering an image with the feature enabled
|
||||||
Given "automatic_image_sizes" feature is "enabled"
|
Given "automatic_image_sizes" feature is "enabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/auto-image-sizes.html"
|
When I go to "/auto-image-sizes.html"
|
||||||
Then I should see "width="
|
Then I should see "width="
|
||||||
And I should see "height="
|
And I should see "height="
|
|
@ -3,20 +3,24 @@ Feature: Generate mtime-based query string for busting browser caches
|
||||||
|
|
||||||
Scenario: Rendering css with the feature disabled
|
Scenario: Rendering css with the feature disabled
|
||||||
Given "cache_buster" feature is "disabled"
|
Given "cache_buster" feature is "disabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/stylesheets/relative_assets.css"
|
When I go to "/stylesheets/relative_assets.css"
|
||||||
Then I should not see "?"
|
Then I should not see "?"
|
||||||
|
|
||||||
Scenario: Rendering html with the feature disabled
|
Scenario: Rendering html with the feature disabled
|
||||||
Given "cache_buster" feature is "disabled"
|
Given "cache_buster" feature is "disabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/cache-buster.html"
|
When I go to "/cache-buster.html"
|
||||||
Then I should not see "?"
|
Then I should not see "?"
|
||||||
|
|
||||||
Scenario: Rendering css with the feature enabled
|
Scenario: Rendering css with the feature enabled
|
||||||
Given "cache_buster" feature is "enabled"
|
Given "cache_buster" feature is "enabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/stylesheets/relative_assets.css"
|
When I go to "/stylesheets/relative_assets.css"
|
||||||
Then I should see "?"
|
Then I should see "?"
|
||||||
|
|
||||||
Scenario: Rendering html with the feature enabled
|
Scenario: Rendering html with the feature enabled
|
||||||
Given "cache_buster" feature is "enabled"
|
Given "cache_buster" feature is "enabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/cache-buster.html"
|
When I go to "/cache-buster.html"
|
||||||
Then I should not see "?"
|
Then I should not see "?"
|
|
@ -8,6 +8,7 @@ Feature: Minify CSS
|
||||||
|
|
||||||
Scenario: Rendering external css with the feature disabled
|
Scenario: Rendering external css with the feature disabled
|
||||||
Given "minify_css" feature is "disabled"
|
Given "minify_css" feature is "disabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/stylesheets/site.css"
|
When I go to "/stylesheets/site.css"
|
||||||
Then I should see "55" lines
|
Then I should see "55" lines
|
||||||
|
|
||||||
|
@ -18,5 +19,6 @@ Feature: Minify CSS
|
||||||
|
|
||||||
Scenario: Rendering external css with the feature enabled
|
Scenario: Rendering external css with the feature enabled
|
||||||
Given "minify_css" feature is "enabled"
|
Given "minify_css" feature is "enabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/stylesheets/site.css"
|
When I go to "/stylesheets/site.css"
|
||||||
Then I should see "1" lines
|
Then I should see "1" lines
|
|
@ -6,15 +6,18 @@ Feature: Minify Javascript
|
||||||
|
|
||||||
Scenario: Rendering inline js with the feature disabled
|
Scenario: Rendering inline js with the feature disabled
|
||||||
Given "minify_javascript" feature is "disabled"
|
Given "minify_javascript" feature is "disabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/inline-js.html"
|
When I go to "/inline-js.html"
|
||||||
Then I should see "10" lines
|
Then I should see "10" lines
|
||||||
|
|
||||||
Scenario: Rendering inline js with the feature enabled
|
Scenario: Rendering inline js with the feature enabled
|
||||||
Given "minify_javascript" feature is "enabled"
|
Given "minify_javascript" feature is "enabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/inline-js.html"
|
When I go to "/inline-js.html"
|
||||||
Then I should see "5" lines
|
Then I should see "5" lines
|
||||||
|
|
||||||
Scenario: Rendering inline js (coffeescript) with the feature enabled
|
Scenario: Rendering inline js (coffeescript) with the feature enabled
|
||||||
Given "minify_javascript" feature is "enabled"
|
Given "minify_javascript" feature is "enabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/inline-coffeescript.html"
|
When I go to "/inline-coffeescript.html"
|
||||||
Then I should see "5" lines
|
Then I should see "5" lines
|
|
@ -3,16 +3,19 @@ Feature: Custom layouts
|
||||||
|
|
||||||
Scenario: Using custom :layout attribute
|
Scenario: Using custom :layout attribute
|
||||||
Given page "/custom-layout.html" has layout "custom"
|
Given page "/custom-layout.html" has layout "custom"
|
||||||
|
And the Server is running
|
||||||
When I go to "/custom-layout.html"
|
When I go to "/custom-layout.html"
|
||||||
Then I should see "Custom Layout"
|
Then I should see "Custom Layout"
|
||||||
|
|
||||||
Scenario: Using with_layout block
|
Scenario: Using with_layout block
|
||||||
Given "/custom-layout.html" with_layout block has layout "custom"
|
Given "/custom-layout.html" with_layout block has layout "custom"
|
||||||
|
And the Server is running
|
||||||
When I go to "/custom-layout.html"
|
When I go to "/custom-layout.html"
|
||||||
Then I should see "Custom Layout"
|
Then I should see "Custom Layout"
|
||||||
|
|
||||||
Scenario: Using custom :layout attribute with folders
|
Scenario: Using custom :layout attribute with folders
|
||||||
Given page "/custom-layout-dir/" has layout "custom"
|
Given page "/custom-layout-dir/" has layout "custom"
|
||||||
|
And the Server is running
|
||||||
When I go to "/custom-layout-dir"
|
When I go to "/custom-layout-dir"
|
||||||
Then I should see "Custom Layout"
|
Then I should see "Custom Layout"
|
||||||
When I go to "/custom-layout-dir/"
|
When I go to "/custom-layout-dir/"
|
||||||
|
@ -22,6 +25,7 @@ Feature: Custom layouts
|
||||||
|
|
||||||
Scenario: Using custom :layout attribute with folders
|
Scenario: Using custom :layout attribute with folders
|
||||||
Given page "/custom-layout-dir" has layout "custom"
|
Given page "/custom-layout-dir" has layout "custom"
|
||||||
|
And the Server is running
|
||||||
When I go to "/custom-layout-dir"
|
When I go to "/custom-layout-dir"
|
||||||
Then I should see "Custom Layout"
|
Then I should see "Custom Layout"
|
||||||
When I go to "/custom-layout-dir/"
|
When I go to "/custom-layout-dir/"
|
||||||
|
@ -31,6 +35,7 @@ Feature: Custom layouts
|
||||||
|
|
||||||
Scenario: Using custom :layout attribute with folders
|
Scenario: Using custom :layout attribute with folders
|
||||||
Given page "/custom-layout-dir/index.html" has layout "custom"
|
Given page "/custom-layout-dir/index.html" has layout "custom"
|
||||||
|
And the Server is running
|
||||||
When I go to "/custom-layout-dir"
|
When I go to "/custom-layout-dir"
|
||||||
Then I should see "Custom Layout"
|
Then I should see "Custom Layout"
|
||||||
When I go to "/custom-layout-dir/"
|
When I go to "/custom-layout-dir/"
|
||||||
|
|
|
@ -6,7 +6,7 @@ Feature: Relative Assets
|
||||||
And the Server is running
|
And the Server is running
|
||||||
When I go to "/stylesheets/relative_assets.css"
|
When I go to "/stylesheets/relative_assets.css"
|
||||||
Then I should not see "url('../"
|
Then I should not see "url('../"
|
||||||
And I should see "url('/images/blank.gif"
|
And I should see "/images/blank.gif"
|
||||||
|
|
||||||
Scenario: Rendering html with the feature disabled
|
Scenario: Rendering html with the feature disabled
|
||||||
Given "relative_assets" feature is "disabled"
|
Given "relative_assets" feature is "disabled"
|
||||||
|
|
|
@ -4,10 +4,12 @@ Feature: Tiny Src
|
||||||
|
|
||||||
Scenario: Rendering html with the feature disabled
|
Scenario: Rendering html with the feature disabled
|
||||||
Given "tiny_src" feature is "disabled"
|
Given "tiny_src" feature is "disabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/tiny_src.html"
|
When I go to "/tiny_src.html"
|
||||||
Then I should see "http://test.com/image.jpg"
|
Then I should see "http://test.com/image.jpg"
|
||||||
|
|
||||||
Scenario: Rendering html with the feature enabled
|
Scenario: Rendering html with the feature enabled
|
||||||
Given "tiny_src" feature is "enabled"
|
Given "tiny_src" feature is "enabled"
|
||||||
|
And the Server is running
|
||||||
When I go to "/tiny_src.html"
|
When I go to "/tiny_src.html"
|
||||||
Then I should see "http://i.tinysrc.mobi/http://test.com/image.jpg"
|
Then I should see "http://i.tinysrc.mobi/http://test.com/image.jpg"
|
|
@ -1,3 +1,3 @@
|
||||||
module Middleman
|
module Middleman
|
||||||
VERSION = "2.0.0.rc8"
|
VERSION = "2.0.0.rc9"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue