diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-06 16:51:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-06-06 16:51:45 -0700 |
commit | 8392f10b58fe3f95b99131da89d9c3fd561bd2e6 (patch) | |
tree | 13a383ba6f6120964fee1a5d9225add15d90ace4 /activerecord/Rakefile | |
parent | 424cf3b0502d8557982ed837a7ed317f9eb280e8 (diff) | |
download | rails-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-x | activerecord/Rakefile | 7 |
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| |