Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.689 kb
require 'rubygems'
begin
require 'bundler/setup'
rescue LoadError
STDERR.puts "Bundler not loaded"
end
desc 'Copy sample spec database.yml over if not exists'
task :copy_db_config do
cp 'spec/database.yml.sample', 'spec/database.yml'
end
task :spec => [:copy_db_config]
desc 'Default: run specs'
task :default => :spec
begin
require 'appraisal'
desc 'Run tests across gemfiles specified in Appraisals'
task :appraise => ['appraisal:cleanup', 'appraisal:install', 'appraisal']
rescue LoadError
puts "appraisal tasks not available"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
end
Bundler::GemHelper.install_tasks
Jump to Line
Something went wrong with that request. Please try again.