diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-24 17:19:43 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-24 17:19:43 +0200 |
commit | 5f25435bf4b3c4e6c1dbac92ef9063420d28dc49 (patch) | |
tree | 8e1ccbe9731dc80e6aaaef04ef32bb43ecb21aaf /activerecord | |
parent | e63ae630e1a9eda6f331757206b1905f1438307c (diff) | |
download | rails-5f25435bf4b3c4e6c1dbac92ef9063420d28dc49.tar.gz rails-5f25435bf4b3c4e6c1dbac92ef9063420d28dc49.tar.bz2 rails-5f25435bf4b3c4e6c1dbac92ef9063420d28dc49.zip |
tests, run adapter specific rake tests only for the right adapter.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/tasks/mysql_rake_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/tasks/postgresql_rake_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/tasks/sqlite_rake_test.rb | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/tasks/mysql_rake_test.rb b/activerecord/test/cases/tasks/mysql_rake_test.rb index 043e8ca8e7..f58535f044 100644 --- a/activerecord/test/cases/tasks/mysql_rake_test.rb +++ b/activerecord/test/cases/tasks/mysql_rake_test.rb @@ -1,5 +1,6 @@ require 'cases/helper' +if current_adapter?(:MysqlAdapter, :Mysql2Adapter) module ActiveRecord class MysqlDBCreateTest < ActiveRecord::TestCase def setup @@ -307,3 +308,4 @@ module ActiveRecord end end +end diff --git a/activerecord/test/cases/tasks/postgresql_rake_test.rb b/activerecord/test/cases/tasks/postgresql_rake_test.rb index 6ea225178f..0d574d071c 100644 --- a/activerecord/test/cases/tasks/postgresql_rake_test.rb +++ b/activerecord/test/cases/tasks/postgresql_rake_test.rb @@ -1,5 +1,6 @@ require 'cases/helper' +if current_adapter?(:PostgreSQLAdapter) module ActiveRecord class PostgreSQLDBCreateTest < ActiveRecord::TestCase def setup @@ -241,3 +242,4 @@ module ActiveRecord end end +end diff --git a/activerecord/test/cases/tasks/sqlite_rake_test.rb b/activerecord/test/cases/tasks/sqlite_rake_test.rb index da3471adf9..750d5e42dc 100644 --- a/activerecord/test/cases/tasks/sqlite_rake_test.rb +++ b/activerecord/test/cases/tasks/sqlite_rake_test.rb @@ -1,6 +1,7 @@ require 'cases/helper' require 'pathname' +if current_adapter?(:SQLite3Adapter) module ActiveRecord class SqliteDBCreateTest < ActiveRecord::TestCase def setup @@ -189,3 +190,4 @@ module ActiveRecord end end end +end |