add tests to check for compilation errors with Sass
This commit is contained in:
parent
1503314ca2
commit
ff71c5f2aa
|
@ -1,2 +1,2 @@
|
|||
*.gem
|
||||
|
||||
.sass-cache
|
|
@ -0,0 +1,8 @@
|
|||
require 'rake/testtask'
|
||||
Rake::TestTask.new do |t|
|
||||
t.libs << "test"
|
||||
t.test_files = FileList['test/*_test.rb']
|
||||
t.verbose = true
|
||||
end
|
||||
|
||||
task default: :test
|
|
@ -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
|
|
@ -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'
|
Loading…
Reference in New Issue