Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add `rake spec` task and make default

  • Loading branch information...
commit b182f9e66047aa3e7822657bd122f6db19093605 1 parent 171dc91
Phil Cohen authored

Showing 1 changed file with 12 additions and 0 deletions. Show diff stats Hide diff stats

  1. +12 0 Rakefile
12 Rakefile
... ... @@ -1,9 +1,11 @@
1 1 #!/usr/bin/env rake
  2 +
2 3 begin
3 4 require 'bundler/setup'
4 5 rescue LoadError
5 6 puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6 7 end
  8 +
7 9 begin
8 10 require 'rdoc/task'
9 11 rescue LoadError
@@ -21,6 +23,16 @@ RDoc::Task.new(:rdoc) do |rdoc|
21 23 end
22 24
23 25
  26 +require "rake/testtask"
  27 +
  28 +Rake::TestTask.new(:spec) do |t|
  29 + t.libs << "lib"
  30 + t.libs << "spec"
  31 + t.pattern = "spec/**/*_spec.rb"
  32 + t.verbose = false
  33 +end
  34 +
  35 +task :default => :spec
24 36
25 37
26 38 Bundler::GemHelper.install_tasks

0 comments on commit b182f9e

Please sign in to comment.
Something went wrong with that request. Please try again.