From b7f38e40f71dfa513184a3ec0f39547b391a0113 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Thu, 7 May 2009 12:01:03 -0700 Subject: [PATCH] Fixed some broken unit tests due to internal Sass API change. --- test/sass_extensions_test.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/sass_extensions_test.rb b/test/sass_extensions_test.rb index 7d59748a..d709464c 100644 --- a/test/sass_extensions_test.rb +++ b/test/sass_extensions_test.rb @@ -20,7 +20,13 @@ class SassExtensionsTest < Test::Unit::TestCase def test_third_argument_expansion assert_equal "a b e, a b f, a c e, a c f, a d e, a d f", nest("a", "b, c, d", "e, f") end + +protected + def evaluation_content(options) + Sass::Script::Functions::EvaluationContext.new(options) + end def nest(*arguments) - Sass::Script::Functions.nest(*arguments.map{|a| Sass::Script::String.new(a)}).to_s + options = arguments.last.is_a?(Hash) ? arguments.pop : Hash.new + evaluation_content(options).nest(*arguments.map{|a| Sass::Script::String.new(a)}).to_s end end \ No newline at end of file