Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (25 sloc) 0.635 kB
require 'rake'
require 'rake/gempackagetask'
task :default => :spec
# Specs.
#
require 'spec'
require 'spec/rake/spectask'
spec_root = File.join(File.dirname(__FILE__), 'spec')
desc "Run specs"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ['--options', "\"#{File.join(spec_root, 'spec.opts')}\""]
t.spec_files = FileList[File.join(spec_root, '**', '*_spec.rb')]
end
task :simplecov do
require 'simplecov'
SimpleCov.adapters.define 'picky' do
add_filter '/spec/'
add_group 'Libraries', 'lib'
end
SimpleCov.start 'picky'
end
task :cov do
Rake::Task['simplecov'].invoke
Rake::Task['spec'].invoke
end
Jump to Line
Something went wrong with that request. Please try again.