Sha256: 0accb30a5e0a9db4065ddd6c3aaec5ae1c6a1ddb31203c4d03aa094ad0120a49
Contents?: true
Size: 707 Bytes
Versions: 14
Compression:
Stored size: 707 Bytes
Contents
require 'test_helper' require 'fileutils' require 'sassc' class CompilationTest < Minitest::Test def test_compilation_bootstrap compile 'bootstrap' assert true # nothing was raised end def test_compilation_bootstrap_theme compile 'bootstrap/theme' assert true # nothing was raised end private def compile(file) path = File.expand_path('../assets/stylesheets', __dir__) FileUtils.rm_rf('.sass-cache', secure: true) engine = SassC::Engine.new( %Q{@import "#{path}/#{file}"}, syntax: :scss, load_paths: ['.'] ) FileUtils.mkdir_p("tmp/#{File.dirname(file)}") File.open("tmp/#{file}.css", 'w') { |f| f.write engine.render } end end
Version data entries
14 entries across 14 versions & 3 rubygems