diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-05-12 00:44:50 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-05-12 00:44:50 +0000 |
commit | a722b480008c0609c08e20d4286dd1c1af00823c (patch) | |
tree | cb9c0d6caea78aaf1b10bd96eb8a434205f5e8f0 /activerecord/Rakefile | |
parent | e105e599e706780905d4c348394da989de3b200f (diff) | |
download | rails-a722b480008c0609c08e20d4286dd1c1af00823c.tar.gz rails-a722b480008c0609c08e20d4286dd1c1af00823c.tar.bz2 rails-a722b480008c0609c08e20d4286dd1c1af00823c.zip |
Ensure copy table test runs for sqlite and sqlite3. [mislav] Cllosoes #8328
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6721 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |