aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-06-28 01:19:24 -0300
committerJeremy Kemper <jeremy@bitsweat.net>2010-06-27 21:20:53 -0700
commitab96c71a52b7b950fba6090e6a091a1f951eaa44 (patch)
treedad7c41160447308e92fe1ededcec4783176a777 /activerecord/Rakefile
parent4f74d449eee1e3d1621ed032532076492a1bf0b3 (diff)
downloadrails-ab96c71a52b7b950fba6090e6a091a1f951eaa44.tar.gz
rails-ab96c71a52b7b950fba6090e6a091a1f951eaa44.tar.bz2
rails-ab96c71a52b7b950fba6090e6a091a1f951eaa44.zip
Add this rule to run common tests and specifics ones from adapters dir
Diffstat (limited to 'activerecord/Rakefile')
-rw-r--r--activerecord/Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index 22a17a62af..392b717e0a 100644
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -62,7 +62,9 @@ end
adapter_short = adapter == 'db2' ? adapter : adapter[/^[a-z]+/]
puts [adapter, adapter_short, connection_path].inspect
ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
- Dir["test/cases/**/*_test{,_#{adapter_short}}.rb"].all? do |file|
+ (Dir["test/cases/**/*_test.rb"].reject {
+ |x| x =~ /\/adapters\//
+ } + Dir["test/cases/adapters/#{adapter_short}/**/*_test.rb"]).all? do |file|
system(ruby, "-Ilib:test:#{connection_path}", file)
end or raise "Failures"
end