diff options
Diffstat (limited to 'activerecord/Rakefile')
-rwxr-xr-x | activerecord/Rakefile | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index f68457b7db..7c9e2fcc44 100755 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -30,11 +30,8 @@ task :default => [ :test_mysql, :test_sqlite, :test_sqlite3, :test_postgresql ] for adapter in %w( mysql postgresql sqlite sqlite3 firebird sqlserver sqlserver_odbc db2 oracle sybase openbase frontbase ) Rake::TestTask.new("test_#{adapter}") { |t| t.libs << "test" << "test/connections/native_#{adapter}" - if adapter =~ /^sqlserver/ - t.pattern = "test/**/*_test{,_sqlserver}.rb" - else - t.pattern = "test/**/*_test{,_#{adapter}}.rb" - end + adapter_short = adapter == 'db2' ? adapter : adapter[/^[a-z]+/] + t.pattern = "test/**/*_test{,_#{adapter_short}}.rb" t.verbose = true } end @@ -223,4 +220,4 @@ task :release => [ :package ] do rubyforge = RubyForge.new rubyforge.login rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages) -end
\ No newline at end of file +end |