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

Merge branch 'testing' into 2.0.3

This commit is contained in:
Thomas McDonald 2012-05-06 19:56:23 +01:00
commit 261ccd43b6
7 changed files with 44 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
*.gem *.gem
.sass-cache

7
.travis.yml Normal file
View file

@ -0,0 +1,7 @@
language: ruby
rvm:
- 1.9.3
- jruby-19mode
gemfile:
- test/gemfiles/sass_3_1.gemfile
- test/gemfiles/sass_head.gemfile

8
Rakefile Normal file
View file

@ -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

11
test/compilation_test.rb Normal file
View file

@ -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

View file

@ -0,0 +1,5 @@
source "https://rubygems.org"
gem 'sass', '~> 3.1.12'
gemspec path: '../../'

View file

@ -0,0 +1,5 @@
source "https://rubygems.org"
gem 'sass', git: 'git://github.com/nex3/sass.git'
gemspec path: '../../'

7
test/test_helper.rb Normal file
View file

@ -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'