Permalink
Browse files

Add rake tasks for generating and cleaning up test CSS

  • Loading branch information...
1 parent bf9d581 commit ec1a5e83717a7dd66896072479de6db5f7290c5c Reda Lemeden committed Feb 18, 2013
Showing with 14 additions and 1 deletion.
  1. +14 −0 Rakefile
  2. +0 −1 spec/spec_helper.rb
View
@@ -6,3 +6,17 @@ Bundler::GemHelper.install_tasks
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
+
+task :test do
+ puts "Creating a Bourbon directory..."
+ `bourbon install --path test`
+ puts "Generating CSS..."
+ `sass --watch test:css/ -l --style expanded`
+end # task :test
+
+task :clean do
+ puts "Deleting Bourbon directory..."
+ `rm -rf test/bourbon`
+ puts "Deleting generated CSS..."
+ `rm -rf css/`
+end # task :clean
View
@@ -6,7 +6,6 @@
require 'css_parser'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
-
RSpec.configure do |config|
config.include BourbonSupport
config.include SassSupport

0 comments on commit ec1a5e8

Please sign in to comment.