Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ebf4fe2f5c
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (17 sloc) 0.607 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
require 'rake'
require 'rake/testtask'
require 'test/helper'

task :default => [:test_read_from_slave]

task :test => :default

Rake::TestTask.new(:test_with_active_record) do |t|
  t.libs << ReadFromSlave::ActiveRecordTest::AR_TEST_SUITE
  t.libs << ReadFromSlave::ActiveRecordTest.connection
  t.test_files = ReadFromSlave::ActiveRecordTest.test_files
  t.ruby_opts = ["-r #{File.join(File.dirname(__FILE__), 'test', 'active_record_setup')}"]
  t.verbose = true
end

Rake::TestTask.new(:test_read_from_slave) do |t|
  t.libs << 'lib'
  t.test_files = ReadFromSlave::Test.test_files
  t.verbose = true
end
Something went wrong with that request. Please try again.