diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-20 14:56:10 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-20 14:56:10 -0300 |
commit | 4f416465772662967c433b1f6bc7efa4b1993695 (patch) | |
tree | e53a24f3f27055dad3ea4aa572df2f0ba49d7645 /activerecord/test/cases/adapters/postgresql/quoting_test.rb | |
parent | b713e207d470fe01ce8ea945163c6c2540292301 (diff) | |
parent | b2242d1feadf84090d5d46af13e66548b662a3d0 (diff) | |
download | rails-4f416465772662967c433b1f6bc7efa4b1993695.tar.gz rails-4f416465772662967c433b1f6bc7efa4b1993695.tar.bz2 rails-4f416465772662967c433b1f6bc7efa4b1993695.zip |
Merge pull request #15201 from sgrif/sg-types-postgresql
Have Postgres OID types inherit from general types
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/quoting_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/quoting_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/quoting_test.rb b/activerecord/test/cases/adapters/postgresql/quoting_test.rb index 51846e22d9..218c59247e 100644 --- a/activerecord/test/cases/adapters/postgresql/quoting_test.rb +++ b/activerecord/test/cases/adapters/postgresql/quoting_test.rb @@ -10,13 +10,13 @@ module ActiveRecord end def test_type_cast_true - c = PostgreSQLColumn.new(nil, 1, OID::Boolean.new, 'boolean') + c = PostgreSQLColumn.new(nil, 1, Type::Boolean.new, 'boolean') assert_equal 't', @conn.type_cast(true, nil) assert_equal 't', @conn.type_cast(true, c) end def test_type_cast_false - c = PostgreSQLColumn.new(nil, 1, OID::Boolean.new, 'boolean') + c = PostgreSQLColumn.new(nil, 1, Type::Boolean.new, 'boolean') assert_equal 'f', @conn.type_cast(false, nil) assert_equal 'f', @conn.type_cast(false, c) end @@ -47,9 +47,9 @@ module ActiveRecord def test_quote_cast_numeric fixnum = 666 - c = PostgreSQLColumn.new(nil, nil, OID::String.new, 'varchar') + c = PostgreSQLColumn.new(nil, nil, Type::String.new, 'varchar') assert_equal "'666'", @conn.quote(fixnum, c) - c = PostgreSQLColumn.new(nil, nil, OID::Text.new, 'text') + c = PostgreSQLColumn.new(nil, nil, Type::Text.new, 'text') assert_equal "'666'", @conn.quote(fixnum, c) end |