Skip to content

Commit

Permalink
do not to_s where you are testing that a string value is stored for t…
Browse files Browse the repository at this point in the history
…he before_type_cast

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information
amatsuda authored and spastorino committed Feb 7, 2011
1 parent 40aefb9 commit 65e08cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/attribute_methods_test.rb
Expand Up @@ -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

Expand Down

0 comments on commit 65e08cf

Please sign in to comment.