Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (30 sloc) 0.953 kb
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
namespace :sqlserver do
['sqlserver','sqlserver_odbc'].each do |adapter|
Rake::TestTask.new("test_#{adapter}") do |t|
t.libs << "test"
t.libs << "test/connections/native_#{adapter}"
t.libs << "../../../rails/activerecord/test/"
t.test_files = (
Dir.glob("test/cases/**/*_test_sqlserver.rb").sort +
Dir.glob("../../../rails/activerecord/test/**/*_test.rb").sort )
t.verbose = true
end
namespace adapter do
task :test => "test_#{adapter}"
end
end
desc 'Test with unicode types enabled.'
task :test_unicode_types do
ENV['ENABLE_DEFAULT_UNICODE_TYPES'] = 'true'
test = Rake::Task['sqlserver:test_sqlserver_odbc']
test.invoke
end
end
desc 'Test the default ODBC mode, taks sqlserver:test_sqlserver_odbc.'
task :test do
test = Rake::Task['sqlserver:test_sqlserver_odbc']
test.invoke
end
Jump to Line
Something went wrong with that request. Please try again.