forked from josephwilk/rspec-rr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
46 lines (39 loc) · 1.32 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'rcov'
desc 'Default: run unit tests.'
task :default => :spec
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rspec-rr"
gem.summary = %Q{Helping Rspec and Rspec-rails play nicely with RR the test double framework}
gem.description = %Q{Helping Rspec and Rspec-rails play nicely with RR the test double framework.}
gem.email = "[email protected]"
gem.homepage = "http://github.com/josephwilk/rspec-rr"
gem.authors = ["Joseph Wilk"]
gem.add_development_dependency 'rspec'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['--options', 'spec/spec.opts']
unless ENV['NO_RCOV']
t.rcov = true
t.rcov_dir = 'coverage'
t.rcov_opts = ['--exclude', 'lib/spec_rr.rb,,\/var\/lib\/gems,\/Library\/Ruby,\.autotest']
end
end
desc 'Generate documentation for the rspec-rr plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Rspec-rr'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end