diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-12-02 11:32:54 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-12-02 11:35:53 +0100 |
commit | af7c6e493c3d586b7b81f8176b4c99c1c791991b (patch) | |
tree | 240ee9766a8ff5f67b2d32981c51d88577dcbcf0 /activerecord/test/cases/adapters/postgresql/uuid_test.rb | |
parent | bcf5b281a88dadd5c5001757b3d1958eb83606b5 (diff) | |
download | rails-af7c6e493c3d586b7b81f8176b4c99c1c791991b.tar.gz rails-af7c6e493c3d586b7b81f8176b4c99c1c791991b.tar.bz2 rails-af7c6e493c3d586b7b81f8176b4c99c1c791991b.zip |
tests, move schema shorthand assertions into pg specific tests.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/uuid_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/uuid_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb index 5753da1173..fac21996ed 100644 --- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb +++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb @@ -14,6 +14,7 @@ end class PostgresqlUUIDTest < ActiveRecord::TestCase include PostgresqlUUIDHelper + include SchemaDumpingHelper class UUIDType < ActiveRecord::Base self.table_name = "uuid_data_type" @@ -106,6 +107,11 @@ class PostgresqlUUIDTest < ActiveRecord::TestCase assert_equal "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11", uuid.guid end end + + def test_schema_dump_with_shorthand + output = dump_table_schema "uuid_data_type" + assert_match %r{t.uuid "guid"}, output + end end class PostgresqlLargeKeysTest < ActiveRecord::TestCase |