class PostgresqlUUIDTestInverseOf
Public Instance Methods
test_collection_association_with_uuid()
click to toggle source
# File activerecord/test/cases/adapters/postgresql/uuid_test.rb, line 358 def test_collection_association_with_uuid post = UuidPost.create! comment = post.uuid_comments.create! assert post.uuid_comments.find(comment.id) end
test_find_by_with_uuid()
click to toggle source
# File activerecord/test/cases/adapters/postgresql/uuid_test.rb, line 371 def test_find_by_with_uuid UuidPost.create! assert_nil UuidPost.find_by(id: 789) end
test_find_with_uuid()
click to toggle source
# File activerecord/test/cases/adapters/postgresql/uuid_test.rb, line 364 def test_find_with_uuid UuidPost.create! assert_raise ActiveRecord::RecordNotFound do UuidPost.find(123456) end end