@@ -134,7 +134,7 @@ def assert_obj_set_and_save(attribute, value)
134134 type . precision . must_equal 9
135135 type . scale . must_equal 2
136136 obj . decimal_9_2 = '1234567.8901'
137- obj . decimal_9_2 . must_equal BigDecimal ( '1234567.8901' ) # Cast from user one day.
137+ obj . decimal_9_2 . must_equal BigDecimal ( '1234567.89' )
138138 obj . save!
139139 obj . reload . decimal_9_2 . must_equal BigDecimal ( '1234567.89' )
140140 end
@@ -149,7 +149,7 @@ def assert_obj_set_and_save(attribute, value)
149149 type . precision . must_equal 16
150150 type . scale . must_equal 4
151151 obj . decimal_16_4 = '1234567.8901001'
152- obj . decimal_16_4 . must_equal BigDecimal ( '1234567.8901001' ) # Cast from user one day.
152+ obj . decimal_16_4 . must_equal BigDecimal ( '1234567.8901' )
153153 obj . save!
154154 obj . reload . decimal_16_4 . must_equal BigDecimal ( '1234567.8901' )
155155 end
@@ -169,7 +169,7 @@ def assert_obj_set_and_save(attribute, value)
169169 type . precision . must_equal 18
170170 type . scale . must_equal 0
171171 obj . numeric_18_0 = '192.1'
172- obj . numeric_18_0 . must_equal BigDecimal ( '192.1' ) # Cast from user one day.
172+ obj . numeric_18_0 . must_equal BigDecimal ( '192' )
173173 obj . save!
174174 obj . reload . numeric_18_0 . must_equal BigDecimal ( '192' )
175175 end
@@ -189,7 +189,7 @@ def assert_obj_set_and_save(attribute, value)
189189 type . precision . must_equal 36
190190 type . scale . must_equal 2
191191 obj . numeric_36_2 = '192.123'
192- obj . numeric_36_2 . must_equal BigDecimal ( '192.123' ) # Cast from user one day.
192+ obj . numeric_36_2 . must_equal BigDecimal ( '192.12' )
193193 obj . save!
194194 obj . reload . numeric_36_2 . must_equal BigDecimal ( '192.12' )
195195 end
@@ -209,7 +209,7 @@ def assert_obj_set_and_save(attribute, value)
209209 type . precision . must_equal 19
210210 type . scale . must_equal 4
211211 obj . money = '922337203685477.58061'
212- obj . money . must_equal BigDecimal ( '922337203685477.58061 ' )
212+ obj . money . must_equal BigDecimal ( '922337203685477.5806 ' )
213213 obj . save!
214214 obj . reload . money . must_equal BigDecimal ( '922337203685477.5806' )
215215 end
@@ -229,7 +229,7 @@ def assert_obj_set_and_save(attribute, value)
229229 type . precision . must_equal 10
230230 type . scale . must_equal 4
231231 obj . smallmoney = '214748.36461'
232- obj . smallmoney . must_equal BigDecimal ( '214748.36461 ' )
232+ obj . smallmoney . must_equal BigDecimal ( '214748.3646 ' )
233233 obj . save!
234234 obj . reload . smallmoney . must_equal BigDecimal ( '214748.3646' )
235235 end
0 commit comments