Change test to respect global relative assets change
This commit is contained in:
parent
3ae28874bf
commit
3e1fc0aa1f
2 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,10 @@
|
|||
master
|
||||
===
|
||||
|
||||
* `relative_assets` extension overrides local `relative: false` option to stylesheet/javascript tag helpers.
|
||||
|
||||
# 4.0.0.rc.1
|
||||
|
||||
* Removed ability to use JSON as frontmatter. Still allowed in data/ folder.
|
||||
* Added YAML data postscript. Like frontmatter, but reversed. Attach content after the key/value data as a `:postscript` key to the data structure (if Hash).
|
||||
|
||||
|
|
|
@ -59,15 +59,15 @@ Feature: Relative Assets
|
|||
When I cd to "build"
|
||||
Then the file "relative_image/index.html" should contain "../stylesheets/relative_assets.css"
|
||||
|
||||
Scenario: Rendering html with the feature enabled
|
||||
Scenario: Rendering html with the feature enabled (overrides relative option on helpers)
|
||||
Given "relative_assets" feature is "enabled"
|
||||
And the Server is running at "relative-assets-app"
|
||||
When I go to "/relative_image.html"
|
||||
Then I should see '"stylesheets/relative_assets.css"'
|
||||
Then I should see '"javascripts/app.js"'
|
||||
When I go to "/relative_image_absolute_css.html"
|
||||
Then I should see '"/stylesheets/relative_assets.css"'
|
||||
Then I should see '"/javascripts/app.js"'
|
||||
Then I should see '"stylesheets/relative_assets.css"'
|
||||
Then I should see '"javascripts/app.js"'
|
||||
Then I should not see "/images/blank.gif"
|
||||
And I should see "images/blank.gif"
|
||||
|
||||
|
@ -121,4 +121,4 @@ Feature: Relative Assets
|
|||
"""
|
||||
And the Server is running at "relative-assets-app"
|
||||
When I go to "/sub/image_tag.html"
|
||||
Then I should see '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />'
|
||||
Then I should see '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" />'
|
||||
|
|
Loading…
Reference in a new issue