1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00
twbs--bootstrap-sass/test/compilation_test.rb

19 lines
544 B
Ruby
Raw Normal View History

require 'test_helper'
2013-10-31 17:46:07 +01:00
require 'fileutils'
2014-09-02 23:48:44 +02:00
require 'sass'
2014-09-02 23:48:44 +02:00
class CompilationTest < Minitest::Test
def test_compilation
2014-06-24 02:57:06 +02:00
path = 'assets/stylesheets'
2014-09-02 23:48:44 +02:00
%w(_bootstrap bootstrap/_theme).each do |file|
FileUtils.rm_rf('.sass-cache', secure: true)
engine = Sass::Engine.for_file("#{path}/#{file}.scss", syntax: :scss, load_paths: [path])
2014-09-02 23:48:44 +02:00
FileUtils.mkdir_p("tmp/#{File.dirname(file)}")
File.open("tmp/#{file}.css", 'w') { |f|
f.write engine.render
}
assert true # nothing was raised
end
end
2013-12-08 22:24:56 +01:00
end