17 lines
332 B
Text
17 lines
332 B
Text
|
require 'rake'
|
||
|
require 'rspec/core/rake_task'
|
||
|
|
||
|
task :default => [:test]
|
||
|
|
||
|
desc 'Run RSpec'
|
||
|
RSpec::Core::RakeTask.new(:test) do |t|
|
||
|
t.pattern = 'spec/{unit}/**/*.rb'
|
||
|
t.rspec_opts = ['--color']
|
||
|
end
|
||
|
|
||
|
desc 'Generate code coverage'
|
||
|
RSpec::Core::RakeTask.new(:coverage) do |t|
|
||
|
t.rcov = true
|
||
|
t.rcov_opts = ['--exclude', 'spec']
|
||
|
end
|