test/sass/importer_test.rb in sass-3.4.5 vs test/sass/importer_test.rb in sass-3.4.6
- old
+ new
@@ -403,9 +403,18 @@
def fixture_file(path)
File.join(fixture_dir, path)
end
+ def test_filesystem_importer_eql
+ importer = Sass::Importers::Filesystem.new('.')
+ assert importer.eql?(Sass::Importers::Filesystem.new('.'))
+ assert importer.eql?(ReversedExtImporter.new('.'))
+ assert !importer.eql?(Sass::Importers::Filesystem.new('foo'))
+ assert !importer.eql?(nil)
+ assert !importer.eql?('foo')
+ end
+
def test_absolute_files_across_template_locations
importer = Sass::Importers::Filesystem.new(absolutize 'templates')
refute_nil importer.mtime(absolutize('more_templates/more1.sass'), {})
end
end