Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.673 kB
78e11d0 @tj Initial commit
authored
1
2 require 'spec/rake/spectask'
3
4 desc "Run all specifications"
5 Spec::Rake::SpecTask.new(:spec) do |t|
6 t.libs << "lib"
7 t.spec_opts = ["--color", "--require", "spec/spec_helper.rb"]
8 end
9
10 namespace :spec do
11
12 desc "Run all specifications verbosely"
13 Spec::Rake::SpecTask.new(:verbose) do |t|
14 t.libs << "lib"
15 t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
16 end
17
18 desc "Run specific specification verbosely (specify SPEC)"
19 Spec::Rake::SpecTask.new(:select) do |t|
20 t.libs << "lib"
21 t.spec_files = [ENV["SPEC"]]
22 t.spec_opts = ["--color", "--format", "specdoc", "--require", "spec/spec_helper.rb"]
23 end
24
25 end
Something went wrong with that request. Please try again.