aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/array_test.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-03 23:59:12 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-03 23:59:12 -0300
commit5777f0bff99b1c887626c84ef6124adfa5f14645 (patch)
tree91c704a2007260fff88c2eb6ca5ea399f8fffab1 /activerecord/test/cases/adapters/postgresql/array_test.rb
parent217e5f6e4a9d1764bc511ca095bbb15a63bb3b19 (diff)
parent3225ebfa0632cd42a0fbcf0cbca36c7c06e54844 (diff)
downloadrails-5777f0bff99b1c887626c84ef6124adfa5f14645.tar.gz
rails-5777f0bff99b1c887626c84ef6124adfa5f14645.tar.bz2
rails-5777f0bff99b1c887626c84ef6124adfa5f14645.zip
Merge pull request #18283 from kamipo/refactor_postgresql_column
Prefer `array?` rather than `array`
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/array_test.rb')
-rw-r--r--activerecord/test/cases/adapters/postgresql/array_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/array_test.rb b/activerecord/test/cases/adapters/postgresql/array_test.rb
index 042beab23f..77055f5b7a 100644
--- a/activerecord/test/cases/adapters/postgresql/array_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/array_test.rb
@@ -35,13 +35,13 @@ class PostgresqlArrayTest < ActiveRecord::TestCase
def test_column
assert_equal :string, @column.type
assert_equal "character varying", @column.sql_type
- assert @column.array
+ assert @column.array?
assert_not @column.number?
assert_not @column.binary?
ratings_column = PgArray.columns_hash['ratings']
assert_equal :integer, ratings_column.type
- assert ratings_column.array
+ assert ratings_column.array?
assert_not ratings_column.number?
end
@@ -74,7 +74,7 @@ class PostgresqlArrayTest < ActiveRecord::TestCase
assert_equal :text, column.type
assert_equal [], PgArray.column_defaults['snippets']
- assert column.array
+ assert column.array?
end
def test_change_column_cant_make_non_array_column_to_array