aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-04 22:20:59 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-04 22:22:45 +0200
commit3036c4031ab0ce2632d6ac1479ab27cdc4bb4941 (patch)
tree1fc6ec023ab91f35f237052b7565ced6157be8fa /activerecord/test
parent31737e0461640b15ea60960ec24fef7571727831 (diff)
downloadrails-3036c4031ab0ce2632d6ac1479ab27cdc4bb4941.tar.gz
rails-3036c4031ab0ce2632d6ac1479ab27cdc4bb4941.tar.bz2
rails-3036c4031ab0ce2632d6ac1479ab27cdc4bb4941.zip
have an actual `NullColumn` object and update docs accordingly.
Follow up to #15438 and #15502. /cc @sgrif
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/reflection_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/reflection_test.rb b/activerecord/test/cases/reflection_test.rb
index b3c02d29cb..793e193329 100644
--- a/activerecord/test/cases/reflection_test.rb
+++ b/activerecord/test/cases/reflection_test.rb
@@ -82,6 +82,7 @@ class ReflectionTest < ActiveRecord::TestCase
def test_non_existent_columns_return_null_object
column = @first.column_for_attribute("attribute_that_doesnt_exist")
+ assert_instance_of ActiveRecord::ConnectionAdapters::NullColumn, column
assert_equal "attribute_that_doesnt_exist", column.name
assert_equal nil, column.sql_type
assert_equal nil, column.type