[Haml] Turn :ugly on in test by default.
This commit is contained in:
parent
c48e58bcd7
commit
b0b47d0d93
|
@ -3,6 +3,11 @@
|
|||
* Table of contents
|
||||
{:toc}
|
||||
|
||||
## 3.0.1 (Unreleased)
|
||||
|
||||
* Turn the {file:HAML_REFERENCE.md#ugly-option `:ugly` option} on by default
|
||||
in the testing environment in Rails to help tests run faster.
|
||||
|
||||
## 3.0.0
|
||||
{#3-0-0}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ module Haml
|
|||
end
|
||||
end
|
||||
|
||||
if Haml::Util.rails_env == "production"
|
||||
unless Haml::Util.rails_env == "development"
|
||||
Haml::Template.options[:ugly] = true
|
||||
end
|
||||
|
||||
|
|
|
@ -7,6 +7,8 @@ $:.unshift lib_dir unless $:.include?(lib_dir)
|
|||
require 'haml'
|
||||
require 'sass'
|
||||
|
||||
Haml::Template.options[:ugly] = false
|
||||
|
||||
Sass::RAILS_LOADED = true unless defined?(Sass::RAILS_LOADED)
|
||||
|
||||
module Sass::Script::Functions
|
||||
|
|
Loading…
Reference in New Issue