aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-06-06 18:01:11 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-06-06 18:01:45 -0700
commit80451a1fa60f4efa74f2d0e61682441625c7b51e (patch)
tree632e2a188e7f5f0d51b0679d1790551b871fa030 /activerecord/Rakefile
parenta6c5cc2377cbc478cecde7e419c41de5f06ec4e1 (diff)
downloadrails-80451a1fa60f4efa74f2d0e61682441625c7b51e.tar.gz
rails-80451a1fa60f4efa74f2d0e61682441625c7b51e.tar.bz2
rails-80451a1fa60f4efa74f2d0e61682441625c7b51e.zip
make sure AR isolated tests set the environment variable
Diffstat (limited to 'activerecord/Rakefile')
-rwxr-xr-xactiverecord/Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index 71200abf69..d769a73dba 100755
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -59,7 +59,7 @@ end
(Dir["test/cases/**/*_test.rb"].reject {
|x| x =~ /\/adapters\//
} + Dir["test/cases/adapters/#{adapter_short}/**/*_test.rb"]).all? do |file|
- sh(ruby, "-Itest", "-r#{File.expand_path('../', __FILE__)}/test/connections/#{adapter}", file)
+ sh(ruby, "-Itest", file)
end or raise "Failures"
end
@@ -73,6 +73,7 @@ end
# Make sure the adapter test evaluates the env setting task
task "test_#{adapter}" => "#{adapter}:env"
+ task "isolated_test_#{adapter}" => "#{adapter}:env"
end
rule '.sqlite3' do |t|