aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
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|