1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00

Remove obsolete code. Whitespace.

This commit is contained in:
Andy Stewart 2010-03-19 14:37:19 +00:00
parent 775514602c
commit a981969e9a

View file

@ -243,15 +243,14 @@ class HasPaperTrailModelTest < Test::Unit::TestCase
end
should 'restore all forward-compatible attributes' do
# format = '%a, %d %b %Y %H:%M:%S %z' # :rfc822
assert_equal 'Warble', @last.reify.name
assert_equal 'The quick brown fox', @last.reify.a_text
assert_equal 42, @last.reify.an_integer
assert_in_delta 153.01, @last.reify.a_float, 0.001
assert_in_delta 2.71828, @last.reify.a_decimal, 0.00001
assert_equal @date_time.to_time.utc, @last.reify.a_datetime.to_time.utc
assert_equal @time, @last.reify.a_time
assert_equal @date, @last.reify.a_date
assert_equal 'Warble', @last.reify.name
assert_equal 'The quick brown fox', @last.reify.a_text
assert_equal 42, @last.reify.an_integer
assert_in_delta 153.01, @last.reify.a_float, 0.001
assert_in_delta 2.71828, @last.reify.a_decimal, 0.00001
assert_equal @date_time.to_time.utc, @last.reify.a_datetime.to_time.utc
assert_equal @time, @last.reify.a_time
assert_equal @date, @last.reify.a_date
assert @last.reify.a_boolean
end
end