diff options
author | Thomas McDonald <tom@conceptcoding.co.uk> | 2012-05-06 22:50:46 +0400 |
---|---|---|
committer | Thomas McDonald <tom@conceptcoding.co.uk> | 2012-05-06 22:50:46 +0400 |
commit | ff71c5f2aaa8cddc97d787c829b5d62ffb5e5dbd (patch) | |
tree | 7cf54d1bb9a3c6dd1a9554710706b3da331a31ec /test | |
parent | 1503314ca285f4188eb81251f457a741ece858f4 (diff) |
add tests to check for compilation errors with Sass
Diffstat (limited to 'test')
-rw-r--r-- | test/compilation_test.rb | 11 | ||||
-rw-r--r-- | test/test_helper.rb | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/compilation_test.rb b/test/compilation_test.rb new file mode 100644 index 0000000..5a712d4 --- /dev/null +++ b/test/compilation_test.rb @@ -0,0 +1,11 @@ +require 'test_helper' + +class CompilationTest < Test::Unit::TestCase + def test_compilation + path = 'vendor/assets/stylesheets' + engine = Sass::Engine.for_file("#{path}/_bootstrap.scss", syntax: :scss, load_paths: [path]) + assert_nothing_raised do + engine.render + end + end +end
\ No newline at end of file diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 0000000..caff7e1 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,7 @@ +$:.unshift("#{File.dirname(__FILE__)}/..") + +require 'test/unit' + +require 'sass' +require 'lib/bootstrap-sass/compass_extensions' +require 'lib/bootstrap-sass/rails_extentions'
\ No newline at end of file |