forked from paper-trail-gem/paper_trail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (22 loc) · 699 Bytes
/
Rakefile
File metadata and controls
28 lines (22 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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]