Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 436 Bytes
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'appraisal'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ['--backtrace '] if ENV['DEBUG']
spec.verbose = true
end
desc 'Default: run the unit tests.'
task default: [:all]
desc 'Test the plugin under all supported versions.'
task :all do |_t|
exec('bundle exec appraisal install && bundle exec rake appraisal spec')
end