Browse files

make rake run specs by default

  • Loading branch information...
1 parent f008531 commit f5c2d41519df6fb9eff689687dca32cd05ccaf04 Dominique Rose-Rosette committed Sep 19, 2012
Showing with 11 additions and 0 deletions.
  1. +3 −0 Rakefile
  2. +8 −0 tasks/spec.rake
View
3 Rakefile
@@ -2,3 +2,6 @@
require "bundler/gem_tasks"
FileList['tasks/**/*.rake'].each { |task| import task }
+
+desc 'Default: run all specs'
+task :default => :spec
View
8 tasks/spec.rake
@@ -0,0 +1,8 @@
+# encoding: utf-8
+
+require 'rspec/core/rake_task'
+
+desc "Run all examples"
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = %w[--color]
+end

0 comments on commit f5c2d41

Please sign in to comment.