Skip to content

Commit

Permalink
Merge pull request #18589 from kamipo/fix_test_types_line_up
Browse files Browse the repository at this point in the history
Fix `test_types_line_up` when column type missing
  • Loading branch information
rafaelfranca committed Feb 5, 2015
2 parents 6953f16 + add37bd commit 726b95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/schema_dumper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def test_types_line_up
next if column_set.empty?

lengths = column_set.map do |column|
if match = column.match(/t\.(?:integer|decimal|float|datetime|timestamp|time|date|text|binary|string|boolean|uuid|point)\s+"/)
if match = column.match(/t\.(?:integer|decimal|float|datetime|timestamp|time|date|text|binary|string|boolean|xml|uuid|point)\s+"/)
match[0].length
end
end
end.compact

assert_equal 1, lengths.uniq.length
end
Expand Down

0 comments on commit 726b95e

Please sign in to comment.