]> git.openstreetmap.org Git - rails.git/blobdiff - test/integration/user_blocks_test.rb
Merge remote-tracking branch 'upstream/pull/4198'
[rails.git] / test / integration / user_blocks_test.rb
index ecadaad534f8a0d732114d860a73d1110a4fd2c5..96dd879ee08273309e9cba75cffad8ec131e5551 100644 (file)
@@ -15,7 +15,7 @@ class UserBlocksTest < ActionDispatch::IntegrationTest
       :user_id => blocked_user.id,
       :creator_id => create(:moderator_user).id,
       :reason => "testing",
-      :ends_at => Time.now.getutc + 5.minutes
+      :ends_at => Time.now.utc + 5.minutes
     )
     get "/api/#{Settings.api_version}/user/details", :headers => basic_authorization_header(blocked_user.display_name, "test")
     assert_response :forbidden
@@ -29,7 +29,7 @@ class UserBlocksTest < ActionDispatch::IntegrationTest
       :user_id => blocked_user.id,
       :creator_id => moderator.id,
       :reason => "testing",
-      :ends_at => Time.now.getutc + 5.minutes
+      :ends_at => Time.now.utc + 5.minutes
     )
     get "/api/#{Settings.api_version}/user/details", :headers => basic_authorization_header(blocked_user.display_name, "test")
     assert_response :forbidden