diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2013-01-15 00:43:10 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2013-01-15 04:56:37 +0900 |
commit | 28ac50b7b33ea45b6d8f24b7e8f06bb68e6e4e8c (patch) | |
tree | fb68f419c261d79f993ec944c5bbafb03fb75c64 /activerecord/test | |
parent | 0246712bc15201ea1e8285af5adc5b2620538b5d (diff) | |
download | rails-28ac50b7b33ea45b6d8f24b7e8f06bb68e6e4e8c.tar.gz rails-28ac50b7b33ea45b6d8f24b7e8f06bb68e6e4e8c.tar.bz2 rails-28ac50b7b33ea45b6d8f24b7e8f06bb68e6e4e8c.zip |
Address test_create_when_database_exists_outputs_info_to_stderr failures
When tested with ruby-2.0.0-rc1 `rake test` executes this test
even if the target adapter is not mysql nor mysql2.
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/tasks/mysql_rake_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/tasks/mysql_rake_test.rb b/activerecord/test/cases/tasks/mysql_rake_test.rb index 38b9dd02f0..f2b2785e91 100644 --- a/activerecord/test/cases/tasks/mysql_rake_test.rb +++ b/activerecord/test/cases/tasks/mysql_rake_test.rb @@ -3,6 +3,10 @@ require 'cases/helper' module ActiveRecord class MysqlDBCreateTest < ActiveRecord::TestCase def setup + unless current_adapter?(:MysqlAdapter, :Mysql2Adapter) + return skip("only tested on mysql or mysql2") + end + @connection = stub(:create_database => true) @configuration = { 'adapter' => 'mysql', |