Sha256: 712a0655006a53486842f3072fe20856e817145752fc92ef9500de711622a903

Contents?: true

Size: 801 Bytes

Versions: 1

Compression:

Stored size: 801 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

desc 'Set a relevant database.yml for testing'
task :prepare do
  ENV["DB"] ||= "sqlite"
  if RUBY_VERSION >= '1.9'
    FileUtils.cp "test/dummy/config/database.#{ENV["DB"]}.yml", "test/dummy/config/database.yml"
  else
    require 'ftools'
    File.cp "test/dummy/config/database.#{ENV["DB"]}.yml", "test/dummy/config/database.yml"
  end
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 PaperTrail specs for the RSpec helper.'
RSpec::Core::RakeTask.new(:spec)

desc 'Default: run all available test suites'
task :default => [:prepare, :test, :spec]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paper_trail-4.0.0.beta2 Rakefile