aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2011-02-07 19:51:52 +0900
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-07 09:52:24 -0200
commit65e08cfb4fdf30a38162477dc8b644c6fad74d93 (patch)
tree79352bcaf55ea8235196fbd69981ee928bd93c17
parent40aefb93018277ee7cafc5529b16d7b6df8aa4dd (diff)
downloadrails-65e08cfb4fdf30a38162477dc8b644c6fad74d93.tar.gz
rails-65e08cfb4fdf30a38162477dc8b644c6fad74d93.tar.bz2
rails-65e08cfb4fdf30a38162477dc8b644c6fad74d93.zip
do not to_s where you are testing that a string value is stored for the before_type_cast
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb2
1 files changed, 1 insertions, 1 deletions
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