-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
34 lines (29 loc) · 810 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'rubygems'
require 'rake'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec:integration') do |t|
t.pattern = './shoes/spec/shoes/**/*_spec.rb'
t.rspec_opts = ['-I./shoes/lib', '-I./shoes/spec', '-r./spec/spec_helper', '-r./shoes/spec/spec_helper.rb']
t.rspec_opts << '-fd'
t.rspec_opts << '-c'
t.rspec_opts << '--tag qt'
end
RSpec::Core::RakeTask.new('spec') do |t|
t.rspec_opts = []
t.rspec_opts << '-fd'
t.rspec_opts << '-c'
t.rspec_opts << '--tag qt'
end
task :default => 'spec:all'
task 'spec:all' => [:spec, 'spec:integration']
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.options = ['-mmarkdown']
end
rescue LoadError
desc "Generate YARD Documentation"
task :yard do
abort 'YARD is not available. Try: gem install yard'
end
end