From 31219f009cfbb1fb492f36522edc38eef667c01b Mon Sep 17 00:00:00 2001 From: Marcel Molina Date: Tue, 11 Oct 2005 03:51:58 +0000 Subject: Add test coverage for content_columns. Closes #2432. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/reflection_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'activerecord/test/reflection_test.rb') diff --git a/activerecord/test/reflection_test.rb b/activerecord/test/reflection_test.rb index 0935b7e5a2..c3117b8c5d 100644 --- a/activerecord/test/reflection_test.rb +++ b/activerecord/test/reflection_test.rb @@ -28,7 +28,10 @@ class ReflectionTest < Test::Unit::TestCase end def test_content_columns - assert_equal 8, Topic.content_columns.length + content_columns = Topic.content_columns + content_column_names = content_columns.map {|column| column.name} + assert_equal 8, content_columns.length + assert_equal %w(title author_name author_email_address written_on bonus_time last_read content approved).sort, content_column_names.sort end def test_column_string_type_and_limit -- cgit v1.2.3