aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/helper.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-02-18 11:16:46 +0900
committerRyuta Kamizono <kamipo@gmail.com>2015-02-19 16:00:16 +0900
commit4b38a99e7a5eccf06a856cbda8517eb6039ab433 (patch)
tree2383469dcbd124654acb839f8d868b9538503643 /activerecord/test/cases/helper.rb
parent06d5d2c5e9cfcd92ba239703c0d699d17a90621e (diff)
downloadrails-4b38a99e7a5eccf06a856cbda8517eb6039ab433.tar.gz
rails-4b38a99e7a5eccf06a856cbda8517eb6039ab433.tar.bz2
rails-4b38a99e7a5eccf06a856cbda8517eb6039ab433.zip
Extract precision from datetime and time columns
The cause by which the test suite for the mysql adapter broke in 1502cae (reverted 89ba5bb) is because the precision was not extracted. The rounding problem in mysql adapter has not been fixed, but `mysql_56` helper tested only mysql2 adapter, its behavior was not apparent.
Diffstat (limited to 'activerecord/test/cases/helper.rb')
-rw-r--r--activerecord/test/cases/helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb
index f1f927852c..f2ba28a32f 100644
--- a/activerecord/test/cases/helper.rb
+++ b/activerecord/test/cases/helper.rb
@@ -46,7 +46,7 @@ def in_memory_db?
end
def mysql_56?
- current_adapter?(:Mysql2Adapter) &&
+ current_adapter?(:MysqlAdapter, :Mysql2Adapter) &&
ActiveRecord::Base.connection.send(:version).join(".") >= "5.6.0"
end