test/sass/engine_test.rb in sass-3.1.0.alpha.18 vs test/sass/engine_test.rb in sass-3.1.0.alpha.19

- old
+ new

@@ -3,10 +3,11 @@ require File.dirname(__FILE__) + '/../test_helper' require File.dirname(__FILE__) + '/test_helper' require 'sass/engine' require 'stringio' require 'mock_importer' +require 'pathname' module Sass::Script::Functions::UserFunctions def option(name) Sass::Script::String.new(@options[name.value.to_sym].to_s) end @@ -540,9 +541,18 @@ def test_sass_import sassc_file = sassc_path("importee") assert !File.exists?(sassc_file) renders_correctly "import", { :style => :compact, :load_paths => [File.dirname(__FILE__) + "/templates"] } + assert File.exists?(sassc_file) + end + + def test_sass_pathname_import + sassc_file = sassc_path("importee") + assert !File.exists?(sassc_file) + renders_correctly("import", + :style => :compact, + :load_paths => [Pathname.new(File.dirname(__FILE__) + "/templates")]) assert File.exists?(sassc_file) end def test_nonexistent_extensionless_import assert_raise_message(Sass::SyntaxError, <<ERR.rstrip) do