aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/composite_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-07 17:36:22 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-07 17:36:22 -0700
commit1492e83e49f74b1d874585000bad5368d9f09218 (patch)
treed51bf5354264b3b8843101ee331451f14f231505 /activerecord/test/cases/adapters/postgresql/composite_test.rb
parent16629c099ca30895c90661d5cbce40e218f0984e (diff)
downloadrails-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/composite_test.rb')
-rw-r--r--activerecord/test/cases/adapters/postgresql/composite_test.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/composite_test.rb b/activerecord/test/cases/adapters/postgresql/composite_test.rb
index 0c0d2465b2..83dfb18e95 100644
--- a/activerecord/test/cases/adapters/postgresql/composite_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/composite_test.rb
@@ -52,7 +52,6 @@ class PostgresqlCompositeTest < ActiveRecord::TestCase
assert_not column.array?
type = PostgresqlComposite.type_for_attribute("address")
- assert_not type.number?
assert_not type.binary?
end
@@ -115,7 +114,6 @@ class PostgresqlCompositeWithCustomOIDTest < ActiveRecord::TestCase
assert_not column.array?
type = PostgresqlComposite.type_for_attribute("address")
- assert_not type.number?
assert_not type.binary?
end