Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 379 Bytes
#!/usr/bin/env rake
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
task :default => :spec
RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
end
if RUBY_VERSION < '1.9'
RSpec::Core::RakeTask.new('spec:coverage') do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rcov = true
t.rcov_opts = ['--exclude', 'spec/,/gems/,vendor/']
end
end
Something went wrong with that request. Please try again.