Remove obsolete code in the test helper.

This commit is contained in:
Chris Eppstein 2009-01-13 08:08:27 -08:00
parent 98035eea07
commit 6be55d55e5
2 changed files with 5 additions and 5 deletions

View File

@ -82,7 +82,11 @@ class CompassTest < Test::Unit::TestCase
end end
def with_templates(folder) def with_templates(folder)
old_template_loc = Sass::Plugin.options[:template_location] 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 @current_template_folder = folder
begin begin
Sass::Plugin.options[:template_location][template_loc(folder)] = tempfile_loc(folder) Sass::Plugin.options[:template_location][template_loc(folder)] = tempfile_loc(folder)

View File

@ -31,7 +31,3 @@ require 'sass/plugin'
require 'test/unit' require 'test/unit'
Sass::Plugin.options[:template_location] = {
"#{File.dirname(__FILE__)}/../src" => "#{File.dirname(__FILE__)}/tmp/blueprint"
}