Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 457 Bytes
require 'rake'
require 'rspec/core/rake_task'
task default: [:spec]
desc 'Run all test'
task test: [:spec]
# RSpec tasks
desc 'Run all examples'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.ruby_opts = '-I lib'
spec.pattern = 'spec/**/*_spec.rb'
spec.rspec_opts = ['--color --format doc']
end
# Gems tasks
require 'bundler'
Bundler::GemHelper.install_tasks
desc 'Clean automatically generated files'
task :clean do
FileUtils.rm_rf 'pkg'
end