Skip to content

Commit

Permalink
make sure AR isolated tests set the environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jun 7, 2011
1 parent a6c5cc2 commit 80451a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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|
Expand Down

0 comments on commit 80451a1

Please sign in to comment.