Sha256: b287238ec01c3b24dbd60d33efb9929537b3c6ccf8dfa15f9d2cbbc3f795db4e

Contents?: true

Size: 780 Bytes

Versions: 12

Compression:

Stored size: 780 Bytes

Contents

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"
task(:spec).clear
RSpec::Core::RakeTask.new(:spec) do |t|
  t.verbose = false # hide list of specs bit.ly/1nVq3Jn
end

require "rubocop/rake_task"
RuboCop::RakeTask.new

desc "Default: run all available test suites"
task default: [:rubocop, :prepare, :test, :spec]

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paper_trail-5.2.3/Rakefile
paper_trail-6.0.2 Rakefile
paper_trail-6.0.1 Rakefile
paper_trail-6.0.0 Rakefile
paper_trail-5.2.3 Rakefile
paper_trail-5.2.2 Rakefile
paper_trail-5.2.1 Rakefile
paper_trail-5.2.0 Rakefile
paper_trail-5.1.1 Rakefile
paper_trail-5.1.0 Rakefile
paper_trail-5.0.1 Rakefile
paper_trail-5.0.0 Rakefile