2012-05-06 19:50:46 +01:00
|
|
|
require 'rake/testtask'
|
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.libs << "test"
|
|
|
|
t.test_files = FileList['test/*_test.rb']
|
|
|
|
t.verbose = true
|
|
|
|
end
|
|
|
|
|
2012-05-12 08:24:22 +01:00
|
|
|
desc 'Dumps output to a CSS file for testing'
|
|
|
|
task :debug do
|
|
|
|
require 'sass'
|
|
|
|
require './lib/bootstrap-sass/compass_functions'
|
|
|
|
require './lib/bootstrap-sass/rails_functions'
|
|
|
|
path = './vendor/assets/stylesheets'
|
|
|
|
engine = Sass::Engine.for_file("#{path}/_bootstrap.scss", syntax: :scss, load_paths: [path])
|
|
|
|
File.open('./debug.css', 'w') { |f| f.write(engine.render) }
|
|
|
|
end
|
|
|
|
|
2012-05-06 19:50:46 +01:00
|
|
|
task default: :test
|