X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8140c993139247fb13e3827b30851d0b774c0f32..afcb345014d98914cd4f5d6b14ca2e30feac194c:/test/functional/changeset_controller_test.rb diff --git a/test/functional/changeset_controller_test.rb b/test/functional/changeset_controller_test.rb index 7faa56028..6465c894d 100644 --- a/test/functional/changeset_controller_test.rb +++ b/test/functional/changeset_controller_test.rb @@ -37,7 +37,7 @@ class ChangesetControllerTest < ActionController::TestCase assert_equal Rational(1,24), duration , "initial idle timeout should be an hour (#{cs.created_at} -> #{cs.closed_at})" else # must be number of seconds... - assert_equal 3600.0, duration , "initial idle timeout should be an hour (#{cs.created_at} -> #{cs.closed_at})" + assert_equal 3600, duration.round, "initial idle timeout should be an hour (#{cs.created_at} -> #{cs.closed_at})" end end