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:
parent
775514602c
commit
a981969e9a
1 changed files with 8 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue