Sha256: 287dea07fa6f858b5bda377001cdd6fce88ab3d70d3daca98fb4625f2c924b3b

Contents?: true

Size: 426 Bytes

Versions: 4

Compression:

Stored size: 426 Bytes

Contents

namespace :test do

  Rake::TestTask.new(:migrations => "db:test:prepare") do |t|
    t.libs << "test"
    t.pattern = 'test/migration/**/*_test.rb'
    t.verbose = true
  end
  Rake::Task['test:migrations'].comment = "Run the migration tests in test/migration"

  task :migration => 'test:migrations'
end

task :test do
  Rake::Task['test:migrations'].invoke rescue got_error = true
  raise "Test failures" if got_error
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
birdbath-1.3.5 tasks/birdbath_tasks.rake
birdbath-1.3.4 tasks/birdbath_tasks.rake
migration_test_helper-1.3.3 ./tasks/migration_test_helper_tasks.rake
migration_test_helper-1.3.2 tasks/migration_test_helper_tasks.rake