Sha256: 75314f01e4910ec848e3306fd7bf12cf022bf69634d715669f320526690d26af

Contents?: true

Size: 804 Bytes

Versions: 7

Compression:

Stored size: 804 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.to_f >= 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

7 entries across 7 versions & 1 rubygems

Version Path
paper_trail-3.0.9 Rakefile
paper_trail-3.0.8 Rakefile
paper_trail-3.0.7 Rakefile
paper_trail-4.0.0.beta1 Rakefile
paper_trail-3.0.6 Rakefile
paper_trail-3.0.5 Rakefile
paper_trail-3.0.2 Rakefile