forked from rails-sqlserver/activerecord-sqlserver-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
41 lines (30 loc) · 953 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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