aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_dumper_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 18:30:03 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-02-05 18:30:03 -0200
commit726b95e5ce214a6ad3b688fe8d11c412ebf55692 (patch)
tree985f4ad75e0abe9c9f1873b4ea8819f2b392c56d /activerecord/test/cases/schema_dumper_test.rb
parent6953f16efa364793b29686db032d32673134f4fd (diff)
parentadd37bd645f686e8083d61a52f68efe2fd2a49d0 (diff)
downloadrails-726b95e5ce214a6ad3b688fe8d11c412ebf55692.tar.gz
rails-726b95e5ce214a6ad3b688fe8d11c412ebf55692.tar.bz2
rails-726b95e5ce214a6ad3b688fe8d11c412ebf55692.zip
Merge pull request #18589 from kamipo/fix_test_types_line_up
Fix `test_types_line_up` when column type missing
Diffstat (limited to 'activerecord/test/cases/schema_dumper_test.rb')
-rw-r--r--activerecord/test/cases/schema_dumper_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb
index c8ea702488..bafc9fa81b 100644
--- a/activerecord/test/cases/schema_dumper_test.rb
+++ b/activerecord/test/cases/schema_dumper_test.rb
@@ -73,10 +73,10 @@ class SchemaDumperTest < ActiveRecord::TestCase
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