Permalink
Browse files

add `rake spec` task and make default

  • Loading branch information...
1 parent 171dc91 commit b182f9e66047aa3e7822657bd122f6db19093605 @phlipper committed Aug 6, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 Rakefile
View
12 Rakefile
@@ -1,9 +1,11 @@
#!/usr/bin/env rake
+
begin
require 'bundler/setup'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
+
begin
require 'rdoc/task'
rescue LoadError
@@ -21,6 +23,16 @@ RDoc::Task.new(:rdoc) do |rdoc|
end
+require "rake/testtask"
+
+Rake::TestTask.new(:spec) do |t|
+ t.libs << "lib"
+ t.libs << "spec"
+ t.pattern = "spec/**/*_spec.rb"
+ t.verbose = false
+end
+
+task :default => :spec
Bundler::GemHelper.install_tasks

0 comments on commit b182f9e

Please sign in to comment.