Sha256: a7dd6c1df05ae3d76f64b7ddfc1f17dcbeece6edd43ba8647ffa0f164e8b0c02
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
require "bundler" Bundler::GemHelper.install_tasks desc "Set a relevant database.yml for testing" task :prepare do ENV["DB"] ||= "sqlite" FileUtils.cp( "spec/dummy_app/config/database.#{ENV['DB']}.yml", "spec/dummy_app/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 t.warning = 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 end desc "Default: run all available test suites" task default: %i[prepare test spec]
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paper_trail-association_tracking-2.2.1 | Rakefile |
paper_trail-association_tracking-2.2.0 | Rakefile |