aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/reflection_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2004-12-01 13:18:51 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2004-12-01 13:18:51 +0000
commit0daa29ece29191b288fe86d3616bea0357325419 (patch)
tree7a86e47e5b7c68467c1ef01e08be0ac24faf29a9 /activerecord/test/reflection_test.rb
parent50f333b203756009acff2457b6d1c9da3b532cad (diff)
downloadrails-0daa29ece29191b288fe86d3616bea0357325419.tar.gz
rails-0daa29ece29191b288fe86d3616bea0357325419.tar.bz2
rails-0daa29ece29191b288fe86d3616bea0357325419.zip
Added proper handling of time fields that are turned into Time objects with the dummy date of 2000/1/1 [HariSeldon]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@40 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/reflection_test.rb')
-rw-r--r--activerecord/test/reflection_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/reflection_test.rb b/activerecord/test/reflection_test.rb
index 5d7e9d1197..33e147be77 100644
--- a/activerecord/test/reflection_test.rb
+++ b/activerecord/test/reflection_test.rb
@@ -15,17 +15,17 @@ class ReflectionTest < Test::Unit::TestCase
def test_read_attribute_names
assert_equal(
- %w( id title author_name author_email_address written_on last_read content approved replies_count parent_id type ).sort,
+ %w( id title author_name author_email_address bonus_time written_on last_read content approved replies_count parent_id type ).sort,
@first.attribute_names
)
end
def test_columns
- assert_equal 11, Topic.columns.length
+ assert_equal 12, Topic.columns.length
end
def test_content_columns
- assert_equal 7, Topic.content_columns.length
+ assert_equal 8, Topic.content_columns.length
end
def test_column_string_type_and_limit