[openstreetmap/openstreetmap-website] Account deletion cool-down period (PR #4313)

Anton Khorev notifications at github.com
Fri Nov 17 11:30:38 UTC 2023


@AntonKhorev commented on this pull request.



> +      user = create(:user)
+      create(:changeset, :user => user)
+      session_for(user)
+
+      get account_deletion_path
+      assert_response :success
+      assert_select ".btn", "Delete Account" do
+        assert_select ">@disabled", 0
+      end
+    end
+  end
+
+  def test_past_delay
+    with_user_account_deletion_delay(48) do
+      user = create(:user)
+      (11..15).reverse_each do |n|

One changeset is not enough if we want to make sure that a correct changeset is used in the delay check, but ok, let's create only one changeset.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4313#discussion_r1397128340
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4313/review/1736701614 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231117/e182ee68/attachment.htm>


More information about the rails-dev mailing list