Permalink
Browse files

Add test coverage for content_columns. Closes #2432.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
Marcel Molina
Marcel Molina committed Oct 11, 2005
1 parent cb8c807 commit 31219f009cfbb1fb492f36522edc38eef667c01b
Showing with 6 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +4 −1 activerecord/test/reflection_test.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Add test coverage for content_columns. #2432. [coffee2code]
+
* Speed up for unthreaded environments. #2431. [skaes@web.de]
* Optimization for Mysql selects using mysql-ruby extension greater than 2.6.3. #2426. [skaes@web.de]
@@ -28,7 +28,10 @@ def test_columns_are_returned_in_the_order_they_were_declared
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

0 comments on commit 31219f0

Please sign in to comment.