Sha256: 90e1cd737d8cb23f6b8a8e8d5c8bcb0c12133e9e6d1890b78938567a0e4c6ccf
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
require 'spec/rake/spectask' ADAPTERS = %w[sqlite3 mysql] desc "Run specs under all supported databases" task :spec => ADAPTERS.map { |a| "spec:#{a}" } namespace :spec do ADAPTERS.each do |adapter| namespace :prepare do task adapter do ENV["POPULATOR_ADAPTER"] = adapter end end desc "Run specs under #{adapter}" Spec::Rake::SpecTask.new(adapter => "spec:prepare:#{adapter}") do |t| t.spec_files = Rake::FileList["spec/**/*_spec.rb"] t.spec_opts = ["-c"] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ryanb-populator-0.1.0 | tasks/spec.rake |