public
Description: Test case for improving Rails YAML->SQL serialization
Homepage: http://brycekerley.net/
Clone URL: git://github.com/bkerley/serialize_test.git
check to see if saving screws it up
Bryce Kerley (author)
Tue Jul 15 11:16:21 -0700 2008
commit  a8a1c181a7304cacffe2cfd493934b4f27b1be98
tree    8cebe7d8fa59bb0925b7bfc23a439f5cc8d57459
parent  3daba89eca55dfb2bc349a92eb7762e2ec0c263d
...
5
6
7
8
 
 
9
10
11
...
5
6
7
 
8
9
10
11
12
0
@@ -5,7 +5,8 @@ class HatTest < ActiveSupport::TestCase
0
     description = <<EOF
0
 <span style="color: #800">SODA HAT IS A SLANG TERM FOR A LID</span>
0
 EOF
0
-    h = Hat.create(:name=>'Soda Hat', :description=>description)
0
+    h = Hat.new(:name=>'Soda Hat', :description=>description)
0
+    assert_equal description, h.description
0
     h.save
0
     assert_equal description, h.description
0
   end

Comments