Skip to content

Commit 80451a1

Browse files
committed
make sure AR isolated tests set the environment variable
1 parent a6c5cc2 commit 80451a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

activerecord/Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ end
5959
(Dir["test/cases/**/*_test.rb"].reject {
6060
|x| x =~ /\/adapters\//
6161
} + Dir["test/cases/adapters/#{adapter_short}/**/*_test.rb"]).all? do |file|
62-
sh(ruby, "-Itest", "-r#{File.expand_path('../', __FILE__)}/test/connections/#{adapter}", file)
62+
sh(ruby, "-Itest", file)
6363
end or raise "Failures"
6464
end
6565

@@ -73,6 +73,7 @@ end
7373

7474
# Make sure the adapter test evaluates the env setting task
7575
task "test_#{adapter}" => "#{adapter}:env"
76+
task "isolated_test_#{adapter}" => "#{adapter}:env"
7677
end
7778

7879
rule '.sqlite3' do |t|

0 commit comments

Comments
 (0)