diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-04-03 10:46:46 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-04-03 10:46:46 +0200 |
commit | bd34a950dc7e21abe1340f630082c86197ad9dfc (patch) | |
tree | ab7895aa35069b131e798c875392f2d9061ba874 /activerecord/test | |
parent | c0e0e80fccf350ae5b59c9b17ec45577ff60f3cb (diff) | |
parent | 1f432c54658cf54608a6e37b70b8dc8e40521502 (diff) | |
download | rails-bd34a950dc7e21abe1340f630082c86197ad9dfc.tar.gz rails-bd34a950dc7e21abe1340f630082c86197ad9dfc.tar.bz2 rails-bd34a950dc7e21abe1340f630082c86197ad9dfc.zip |
Merge branch 'lavrovdv-patch-1'
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/uuid_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/uuid_test.rb b/activerecord/test/cases/adapters/postgresql/uuid_test.rb index f79a7a598b..9e03ea6bee 100644 --- a/activerecord/test/cases/adapters/postgresql/uuid_test.rb +++ b/activerecord/test/cases/adapters/postgresql/uuid_test.rb @@ -50,6 +50,11 @@ class PostgresqlUUIDTest < ActiveRecord::TestCase assert_not column.array end + def test_treat_blank_uuid_as_nil + UUIDType.create! guid: '' + assert_equal(nil, UUIDType.last.guid) + end + def test_uuid_formats ["A0EEBC99-9C0B-4EF8-BB6D-6BB9BD380A11", "{a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11}", |