[Haml] Turn :ugly on in test by default.

This commit is contained in:
Nathan Weizenbaum 2010-05-10 18:34:45 -07:00
parent c48e58bcd7
commit b0b47d0d93
3 changed files with 8 additions and 1 deletions

View File

@ -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}

View File

@ -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

View File

@ -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