Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 25e8115a86
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (23 sloc) 0.635 kb
require 'rubygems'
require 'bundler/setup'
require 'rake'
require 'rspec/core/rake_task'
require 'appraisal'
Bundler::GemHelper.install_tasks
desc 'Default: run unit tests.'
task :default => [:clean, :all]
desc "Run Specs against all Appraisals"
task :all => :spec do
Rake::Task["appraisal:install"].execute
system("bundle exec rake -s appraisal spec")
end
desc "Run Specs"
RSpec::Core::RakeTask.new(:spec) do |t|
end
task :test => :spec
desc "Clean up files."
task :clean do |t|
FileUtils.rm_rf "tmp"
Dir.glob("spec/db/*.sqlite3").each {|f| FileUtils.rm f }
Dir.glob("has_draft-*.gem").each {|f| FileUtils.rm f }
end
Jump to Line
Something went wrong with that request. Please try again.