aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-06-06 16:51:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-06-06 16:51:45 -0700
commit8392f10b58fe3f95b99131da89d9c3fd561bd2e6 (patch)
tree13a383ba6f6120964fee1a5d9225add15d90ace4 /activerecord/Rakefile
parent424cf3b0502d8557982ed837a7ed317f9eb280e8 (diff)
downloadrails-8392f10b58fe3f95b99131da89d9c3fd561bd2e6.tar.gz
rails-8392f10b58fe3f95b99131da89d9c3fd561bd2e6.tar.bz2
rails-8392f10b58fe3f95b99131da89d9c3fd561bd2e6.zip
set the environment variable from the rake file
Diffstat (limited to 'activerecord/Rakefile')
-rwxr-xr-xactiverecord/Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index 9776dfea3e..8b0f76048f 100755
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -50,7 +50,6 @@ end
t.verbose = true
t.warning = true
- t.ruby_opts = ["-r#{File.expand_path('../', __FILE__)}/test/connections/#{adapter}"]
}
task "isolated_test_#{adapter}" do
@@ -67,7 +66,13 @@ end
namespace adapter do
task :test => "test_#{adapter}"
task :isolated_test => "isolated_test_#{adapter}"
+
+ # Set the connection environment for the adapter
+ task :env { ENV['ARCONN'] = adapter }
end
+
+ # Make sure the adapter test evaluates the env setting task
+ task "test_#{adapter}" => "#{adapter}:env"
end
rule '.sqlite3' do |t|