Fix test for Liquid rendering in Sass.

This commit is contained in:
Parker Moore 2014-08-29 18:12:33 -07:00
parent ca2e291306
commit eea5921856
2 changed files with 5 additions and 3 deletions

View File

@ -21,11 +21,12 @@ Feature: Rendering
And I should not see "Ahoy, indeed!" in "_site/index.css"
And I should not see "Ahoy, indeed!" in "_site/index.js"
Scenario: Don't render liquid in Sass
Scenario: Render liquid in Sass
Given I have an "index.scss" page that contains ".foo-bar { color:{{site.color}}; }"
And I have a configuration file with "color" set to "red"
When I run jekyll build
Then the _site directory should not exist
And I should see "Invalid CSS after" in the build output
Then the _site directory should exist
And I should see ".foo-bar {\n color:red; }" in "_site/index.css"
Scenario: Render liquid in CoffeeScript
Given I have an "index.coffee" page with animal "cicada" that contains "hey='for {{page.animal}}'"

View File

@ -67,6 +67,7 @@ module Jekyll
converter.convert output
rescue => e
Jekyll.logger.error "Conversion error:", "#{converter.class} encountered an error converting '#{path}'."
Jekyll.logger.error("Conversion error:", e.to_s)
raise e
end
end