X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Ftwbs%2Fbootstrap-sass%2Ftest%2Fcompilation_test.rb;fp=vendor%2Ftwbs%2Fbootstrap-sass%2Ftest%2Fcompilation_test.rb;h=6808813a279363fd97394c5b4f025425a0b1f77e;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/twbs/bootstrap-sass/test/compilation_test.rb b/vendor/twbs/bootstrap-sass/test/compilation_test.rb new file mode 100644 index 000000000..6808813a2 --- /dev/null +++ b/vendor/twbs/bootstrap-sass/test/compilation_test.rb @@ -0,0 +1,18 @@ +require 'test_helper' +require 'fileutils' +require 'sass' + +class CompilationTest < Minitest::Test + def test_compilation + path = 'assets/stylesheets' + %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]) + 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 +end