Skip to content

Commit

Permalink
Don't test datetime with precision for mysql adapter
Browse files Browse the repository at this point in the history
It will pass isolated test (test per file), but somehow created
`t.datetime :written_on, precision: 6` causes any side effects and CI
will be failed only mysql adapter.
So I decided to skip datetime with precision tests for mysql adapter
since the adapter has already been removed after 5.0, it is not worth to
fix the side effects in 4-2-stable.
  • Loading branch information
kamipo committed Sep 18, 2017
1 parent c27a0b3 commit d9f95b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def in_memory_db?
end

def mysql_56?
current_adapter?(:MysqlAdapter, :Mysql2Adapter) &&
current_adapter?(:Mysql2Adapter) &&
ActiveRecord::Base.connection.send(:version) >= '5.6.0'
end

Expand Down

0 comments on commit d9f95b6

Please sign in to comment.