Permalink
Browse files

do not to_s where you are testing that a string value is stored for t…

…he before_type_cast

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information...
1 parent 40aefb9 commit 65e08cfb4fdf30a38162477dc8b644c6fad74d93 @amatsuda amatsuda committed with spastorino Feb 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/attribute_methods_test.rb
View
2 activerecord/test/cases/attribute_methods_test.rb
@@ -131,7 +131,7 @@ def test_read_attributes_before_type_cast_on_datetime
assert_equal developer.created_at, nil
developer.created_at = "2010-03-21 21:23:32"
- assert_equal developer.created_at_before_type_cast.to_s, "2010-03-21 21:23:32"
+ assert_equal developer.created_at_before_type_cast, "2010-03-21 21:23:32"
assert_equal developer.created_at, Time.parse("2010-03-21 21:23:32")
end

0 comments on commit 65e08cf

Please sign in to comment.