public
Description: Debugging toolbar for Rack applications implemented as middleware
Homepage:
Clone URL: git://github.com/brynary/rack-bug.git
rack-bug / Rakefile
100644 20 lines (16 sloc) 0.558 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require "rubygems"
require "spec/rake/spectask"
 
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
end
 
desc "Run all specs in spec directory with RCov"
Spec::Rake::SpecTask.new(:rcov) do |t|
  t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
  t.rcov = true
  t.rcov_opts = lambda do
    IO.readlines(File.dirname(__FILE__) + "/spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
  end
end
 
task :spec => :check_dependencies
 
desc "Run the specs"
task :default => :spec