mirror of
https://github.com/github/rails.git
synced 2026-01-26 23:08:58 -05:00
Add test coverage for content_columns. Closes #2432.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user