aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/json_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2015-01-01 00:00:00 -0800
committerRyuta Kamizono <kamipo@gmail.com>2015-01-04 07:32:03 +0900
commit3225ebfa0632cd42a0fbcf0cbca36c7c06e54844 (patch)
tree67a4a7cf8d75aa5648f9fea21ab40be75705ec97 /activerecord/test/cases/adapters/postgresql/json_test.rb
parent4591b0fc041454f4ba4a83629b9bbca2a851969c (diff)
downloadrails-3225ebfa0632cd42a0fbcf0cbca36c7c06e54844.tar.gz
rails-3225ebfa0632cd42a0fbcf0cbca36c7c06e54844.tar.bz2
rails-3225ebfa0632cd42a0fbcf0cbca36c7c06e54844.zip
Prefer `array?` rather than `array`
Slightly refactoring `PostgreSQLColumn`. `array` should be readonly. `default_function` should be initialized by `super`. `sql_type` has been removed `[]`. Since we already choose to remove it we should not change.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/json_test.rb')
-rw-r--r--activerecord/test/cases/adapters/postgresql/json_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/json_test.rb b/activerecord/test/cases/adapters/postgresql/json_test.rb
index 340ca29c0e..7be7e00463 100644
--- a/activerecord/test/cases/adapters/postgresql/json_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/json_test.rb
@@ -36,7 +36,7 @@ module PostgresqlJSONSharedTestCases
assert_equal column_type.to_s, column.sql_type
assert_not column.number?
assert_not column.binary?
- assert_not column.array
+ assert_not column.array?
end
def test_default