Skip to content

Commit

Permalink
Add an extra assertion to ensure dumping schema default as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
kamipo committed Sep 7, 2017
1 parent a4b73f8 commit 323350e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion activerecord/test/cases/adapters/postgresql/uuid_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def test_add_column_with_default_array
column = UUIDType.columns_hash["thingy"]

assert column.array?
assert [], column.default
assert_equal "{}", column.default

schema = dump_table_schema "uuid_data_type"
assert_match %r{t\.uuid "thingy", default: \[\], array: true$}, schema
end

def test_data_type_of_uuid_types
Expand Down

0 comments on commit 323350e

Please sign in to comment.