Sha256: 90e03b60872ef8cf74da68c3091e9d32753a8fec75c5dc7f552ebff48d606e6e

Contents?: true

Size: 525 Bytes

Versions: 5

Compression:

Stored size: 525 Bytes

Contents

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

namespace :test do
  Rake::TestTask.new(:run) do |t|
    t.libs << "test"
    t.libs << "lib"
    t.test_files = FileList["test/**/*_test.rb"]
  end

  %w[ postgresql sqlite mysql ].each do |adapter_namespace|
    desc "run tests with #{adapter_namespace} adapter"
    task(adapter_namespace) do
      ENV["BUNDLE_GEMFILE"] = "gemfiles/#{adapter_namespace}.gemfile"
      Bundler.setup
      Rake::Task["test:run"].invoke
    end
  end
end

task :default => "test:sqlite"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_record_seek-0.0.5 Rakefile
active_record_seek-0.0.4 Rakefile
active_record_seek-0.0.3 Rakefile
active_record_seek-0.0.2 Rakefile
active_record_seek-0.0.1 Rakefile