Sha256: 91b869e9c0a819db4d34022478946b1a47cb5d152ea2bd5ad59363deae9d3593

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

require 'rubygems'
require 'rake'
require 'rspec/core/rake_task'
require 'yaml'

ADAPTERS = YAML.load(File.read(File.dirname(__FILE__) + "/spec/database.yml")).keys

desc "Run specs under all supported databases"
task :spec => ADAPTERS.map { |a| "spec:#{a}" }
task :default => :spec

namespace :spec do
  ADAPTERS.each do |adapter|
    namespace :prepare do
      task adapter do
        ENV["POPULATOR_ADAPTER"] = adapter
      end
    end

    desc "Run specs under #{adapter}"
    RSpec::Core::RakeTask.new(adapter => "spec:prepare:#{adapter}") do |t|
      t.verbose = false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
populator-1.0.0 Rakefile