From 3036c4031ab0ce2632d6ac1479ab27cdc4bb4941 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Wed, 4 Jun 2014 22:20:59 +0200 Subject: have an actual `NullColumn` object and update docs accordingly. Follow up to #15438 and #15502. /cc @sgrif --- activerecord/test/cases/reflection_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test') 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 -- cgit v1.2.3