From 65e08cfb4fdf30a38162477dc8b644c6fad74d93 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Mon, 7 Feb 2011 19:51:52 +0900 Subject: do not to_s where you are testing that a string value is stored for the before_type_cast Signed-off-by: Santiago Pastorino --- activerecord/test/cases/attribute_methods_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test') diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index c343dd7918..88eaea62e8 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -131,7 +131,7 @@ class AttributeMethodsTest < ActiveRecord::TestCase 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 -- cgit v1.2.3