Sha256: ba38a50cb56ee8b9aaf3ab8c06b9293e55fa317d7dcf8e442b9fa4e4bd125bd5
Contents?: true
Size: 877 Bytes
Versions: 6
Compression:
Stored size: 877 Bytes
Contents
require 'test/unit' require 'sass' require 'sass-globbing' class SassGlobbingTest < Test::Unit::TestCase def test_can_import_globbed_files css = render_file("all.sass") assert_match /deeply-nested/, css assert_match %r{No files to import found in doesnotexist/\*\\/foo\.\*}, css end private def render_file(filename) fixtures_dir = File.expand_path("fixtures", File.dirname(__FILE__)) full_filename = File.expand_path(filename, fixtures_dir) syntax = File.extname(full_filename)[1..-1].to_sym engine = Sass::Engine.new(File.read(full_filename), :syntax => syntax, :filename => full_filename, :cache => false, :read_cache => false, :load_paths => [fixtures_dir]) engine.render end end
Version data entries
6 entries across 6 versions & 2 rubygems