Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-sass.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas McDonald <tom@conceptcoding.co.uk>2012-05-06 22:50:46 +0400
committerThomas McDonald <tom@conceptcoding.co.uk>2012-05-06 22:50:46 +0400
commitff71c5f2aaa8cddc97d787c829b5d62ffb5e5dbd (patch)
tree7cf54d1bb9a3c6dd1a9554710706b3da331a31ec
parent1503314ca285f4188eb81251f457a741ece858f4 (diff)
add tests to check for compilation errors with Sass
-rw-r--r--.gitignore2
-rw-r--r--Rakefile8
-rw-r--r--test/compilation_test.rb11
-rw-r--r--test/test_helper.rb7
4 files changed, 27 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index a3a6afd6..43ee303c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
*.gem
-
+.sass-cache \ No newline at end of file
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 00000000..cc6711fc
--- /dev/null
+++ b/Rakefile
@@ -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 \ No newline at end of file
diff --git a/test/compilation_test.rb b/test/compilation_test.rb
new file mode 100644
index 00000000..5a712d42
--- /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 00000000..caff7e14
--- /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