Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (22 sloc) 0.595 kb
fc43aed @ddollar fix up parka usage
authored
1 require "rubygems"
2 require "bundler"
3 Bundler.setup
4
6ac3b1f @ddollar initial commit
authored
5 require "rake"
6 require "rspec"
7 require "rspec/core/rake_task"
8
9 $:.unshift File.expand_path("../lib", __FILE__)
10 require "asset_resource"
11
12 task :default => :spec
13
14 desc "Run all specs"
15 Rspec::Core::RakeTask.new(:spec) do |t|
16 t.pattern = 'spec/**/*_spec.rb'
17 end
18
19 desc "Generate RCov code coverage report"
20 task :rcov => "rcov:build" do
21 %x{ open coverage/index.html }
22 end
23
24 Rspec::Core::RakeTask.new("rcov:build") do |t|
25 t.pattern = 'spec/**/*_spec.rb'
26 t.rcov = true
27 t.rcov_opts = [ "--exclude", Gem.default_dir , "--exclude", "spec" ]
28 end
Something went wrong with that request. Please try again.