diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-06-28 01:19:24 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-27 21:20:53 -0700 |
commit | ab96c71a52b7b950fba6090e6a091a1f951eaa44 (patch) | |
tree | dad7c41160447308e92fe1ededcec4783176a777 /activerecord | |
parent | 4f74d449eee1e3d1621ed032532076492a1bf0b3 (diff) | |
download | rails-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')
-rw-r--r-- | activerecord/Rakefile | 4 |
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 |