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 6e04f58 commit cb045c02c79c2cfd920f1c7d336bd3b05a20e92b @amatsuda amatsuda committed with Santiago Pastorino and Emilio Tagua Feb 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 cb045c0

Please sign in to comment.