diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-02-07 17:36:22 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-02-07 17:36:22 -0700 |
commit | 1492e83e49f74b1d874585000bad5368d9f09218 (patch) | |
tree | d51bf5354264b3b8843101ee331451f14f231505 /activerecord/test/cases/adapters/postgresql/network_test.rb | |
parent | 16629c099ca30895c90661d5cbce40e218f0984e (diff) | |
download | rails-1492e83e49f74b1d874585000bad5368d9f09218.tar.gz rails-1492e83e49f74b1d874585000bad5368d9f09218.tar.bz2 rails-1492e83e49f74b1d874585000bad5368d9f09218.zip |
rm `Type#number?`
This predicate is only used in `query_attribute`, and is relatively easy
to remove without adding a bunch of is a checks.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/network_test.rb')
-rw-r--r-- | activerecord/test/cases/adapters/postgresql/network_test.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/network_test.rb b/activerecord/test/cases/adapters/postgresql/network_test.rb index efe754ac7c..4cd2d4d5f3 100644 --- a/activerecord/test/cases/adapters/postgresql/network_test.rb +++ b/activerecord/test/cases/adapters/postgresql/network_test.rb @@ -25,7 +25,6 @@ class PostgresqlNetworkTest < ActiveRecord::TestCase assert_not column.array? type = PostgresqlNetworkAddress.type_for_attribute("cidr_address") - assert_not type.number? assert_not type.binary? end @@ -36,7 +35,6 @@ class PostgresqlNetworkTest < ActiveRecord::TestCase assert_not column.array? type = PostgresqlNetworkAddress.type_for_attribute("inet_address") - assert_not type.number? assert_not type.binary? end @@ -47,7 +45,6 @@ class PostgresqlNetworkTest < ActiveRecord::TestCase assert_not column.array? type = PostgresqlNetworkAddress.type_for_attribute("mac_address") - assert_not type.number? assert_not type.binary? end |