Sha256: 577b07fac494a8b30078252aa70a936ef0927395806084056854cd175aed0e51

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/testtask"

ADAPTERS = %w[postgresql mysql sqlite].freeze

ADAPTERS.each do |adapter|
  namespace :test do
    Rake::TestTask.new(adapter) do |t|
      t.description = "Run #{adapter} tests"
      t.libs << "test"
      t.test_files = FileList["test/#{adapter}_test.rb"]
    end
  end
end

desc "Run all tests"
task :test do
  ADAPTERS.each do |adapter|
    Rake::Task["test:#{adapter}"].invoke
  end
end

task default: :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
set_as_primary-0.1.4 Rakefile