diff --git a/test/compass_test.rb b/test/compass_test.rb index 1530b513..8b728c83 100644 --- a/test/compass_test.rb +++ b/test/compass_test.rb @@ -82,7 +82,11 @@ class CompassTest < Test::Unit::TestCase end def with_templates(folder) old_template_loc = Sass::Plugin.options[:template_location] - Sass::Plugin.options[:template_location] = old_template_loc.dup + Sass::Plugin.options[:template_location] = if old_template_loc.is_a?(Hash) + old_template_loc.dup + else + Hash.new + end @current_template_folder = folder begin Sass::Plugin.options[:template_location][template_loc(folder)] = tempfile_loc(folder) diff --git a/test/test_helper.rb b/test/test_helper.rb index d7db925b..38c5e5b2 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -31,7 +31,3 @@ require 'sass/plugin' require 'test/unit' - -Sass::Plugin.options[:template_location] = { - "#{File.dirname(__FILE__)}/../src" => "#{File.dirname(__FILE__)}/tmp/blueprint" -}