Permalink
Browse files

Add spec as default rake task

  • Loading branch information...
1 parent dfee5cd commit 5c9c2d20f370d74d44a34eebc42a897196ac2433 @pzol committed May 3, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Rakefile
View
@@ -1,2 +1,11 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
+require 'rspec/core/rake_task'
+
+desc "Run all specs"
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.pattern = FileList['spec/**/*_spec.rb']
+ t.rspec_opts = %w[--format doc --color]
+end
+
+task :default => :spec

0 comments on commit 5c9c2d2

Please sign in to comment.