]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/changeset_controller_test.rb
Moved a bunch of time functions into UTC. Fixes bugs which we only see for 4 hours...
[rails.git] / test / functional / changeset_controller_test.rb
index 7faa5602899cbb49017931d3dcc4e9600efa4f07..6465c894de77d95a09008feb53daffb3460d3133 100644 (file)
@@ -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