aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/type_lookup_test.rb
blob: 23817198b1b084061baaff5324049ff245add29c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                       
require 'cases/helper'

class PostgresqlTypeLookupTest < ActiveRecord::TestCase
  setup do
    @connection = ActiveRecord::Base.connection
  end

  test "array delimiters are looked up correctly" do
    box_array = @connection.type_map.lookup(1020)
    int_array = @connection.type_map.lookup(1007)

    assert_equal ';', box_array.delimiter
    assert_equal ',', int_array.delimiter
  end
end