test/sass/engine_test.rb in sass-3.3.0.alpha.149 vs test/sass/engine_test.rb in sass-3.3.0.alpha.162

- old
+ new

@@ -7,20 +7,20 @@ require 'mock_importer' require 'pathname' module Sass::Script::Functions::UserFunctions def option(name) - Sass::Script::String.new(@options[name.value.to_sym].to_s) + Sass::Script::Value::String.new(@options[name.value.to_sym].to_s) end def set_a_variable(name, value) environment.set_var(name.value, value) - return Sass::Script::Null.new + return Sass::Script::Value::Null.new end def get_a_variable(name) - environment.var(name.value) || Sass::Script::String.new("undefined") + environment.var(name.value) || Sass::Script::Value::String.new("undefined") end end module Sass::Script::Functions include Sass::Script::Functions::UserFunctions @@ -3030,23 +3030,23 @@ assert_equal original_filename, engine.options[:original_filename] assert_equal original_filename, importer.engine("imported").options[:original_filename] end def test_changing_precision - old_precision = Sass::Script::Number.precision + old_precision = Sass::Script::Value::Number.precision begin - Sass::Script::Number.precision = 8 + Sass::Script::Value::Number.precision = 8 assert_equal <<CSS, render(<<SASS) div { maximum: 1.00000001; too-much: 1.0; } CSS div maximum : 1.00000001 too-much: 1.000000001 SASS ensure - Sass::Script::Number.precision = old_precision + Sass::Script::Value::Number.precision = old_precision end end def test_content assert_equal <<CSS, render(<<SASS)