1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/Rakefile
Jared Beck d030ba2b02 Remove ruby 1.8 hacks
PaperTrail no longer supports ruby 1.8.
2015-12-13 01:14:59 -05:00

28 lines
699 B
Ruby

require 'bundler'
Bundler::GemHelper.install_tasks
desc 'Set a relevant database.yml for testing'
task :prepare do
ENV["DB"] ||= "sqlite"
FileUtils.cp "test/dummy/config/database.#{ENV["DB"]}.yml", "test/dummy/config/database.yml"
end
require 'rake/testtask'
desc 'Run tests on PaperTrail with Test::Unit.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
require 'rspec/core/rake_task'
desc 'Run tests on PaperTrail with RSpec'
RSpec::Core::RakeTask.new(:spec)
require 'rubocop/rake_task'
RuboCop::RakeTask.new
desc 'Default: run all available test suites'
task :default => [:rubocop, :prepare, :test, :spec]