lint this, check todo
CI / scan_ruby (push) Successful in 18s
CI / scan_js (push) Successful in 14s
CI / lint (push) Successful in 20s
CI / test (push) Successful in 33s

This commit is contained in:
2026-01-30 01:47:41 +01:00
parent 21e7e65dfb
commit 7c7bdf7e65
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ require "test_helper"
class EntryRequestFlowTest < ActionDispatch::IntegrationTest
test "complete flow: request -> admin approve -> user accepts -> entry active" do
# Step 1: Public user submits entry request
assert_difference(["User.count", "Entry.count"], 1) do
assert_difference([ "User.count", "Entry.count" ], 1) do
post requests_path, params: {
entry: {
name: "Flow Test User",
@@ -110,7 +110,7 @@ class EntryRequestFlowTest < ActionDispatch::IntegrationTest
# Admin rejects it
login_as(users(:admin_user))
assert_difference(["User.count", "Entry.count"], -1) do
assert_difference([ "User.count", "Entry.count" ], -1) do
delete reject_admin_request_path(entry)
end