Skip to content

Commit 9c13c1b

Browse files
author
Anna
committed
run arel tests
1 parent 02e3c86 commit 9c13c1b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ def test_files
3636
elsif ENV['AREL_ONLY']
3737
arel_cases
3838
else
39-
arel_cases + sqlserver_cases + (ar_cases - adapter_cases)
39+
test_setup + arel_cases + sqlserver_cases + (ar_cases - adapter_cases)
4040
end
41+
4142
end
4243

4344
task :test => ['test:dblib']

test/cases/sqlserver_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
SQLSERVER_MIGRATIONS_ROOT = File.expand_path(File.join(SQLSERVER_TEST_ROOT,'migrations'))
55
SQLSERVER_SCHEMA_ROOT = File.expand_path(File.join(SQLSERVER_TEST_ROOT,'schema'))
66
ACTIVERECORD_TEST_ROOT = File.expand_path(File.join(Gem.loaded_specs['activerecord'].full_gem_path,'test'))
7+
AREL_TEST_ROOT = File.expand_path(File.join(Gem.loaded_specs['arel'].full_gem_path,'test'))
8+
79
ENV['ARCONFIG'] = File.expand_path(File.join(SQLSERVER_TEST_ROOT,'config.yml'))
810

911
$:.unshift ACTIVERECORD_TEST_ROOT
12+
$LOAD_PATH.unshift AREL_TEST_ROOT
1013

1114
require 'rubygems'
1215
require 'bundler'

0 commit comments

Comments
 (0)