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
+5 -5
View File
@@ -25,7 +25,7 @@ class RequestsControllerTest < ActionDispatch::IntegrationTest
end
test "should create entry request with valid data" do
assert_difference(["User.count", "Entry.count"], 1) do
assert_difference([ "User.count", "Entry.count" ], 1) do
post requests_path, params: {
entry: {
name: "New Requester",
@@ -52,7 +52,7 @@ class RequestsControllerTest < ActionDispatch::IntegrationTest
end
test "should require at least one translation" do
assert_no_difference(["User.count", "Entry.count"]) do
assert_no_difference([ "User.count", "Entry.count" ]) do
post requests_path, params: {
entry: {
name: "New Requester",
@@ -70,7 +70,7 @@ class RequestsControllerTest < ActionDispatch::IntegrationTest
test "should redirect to login if email already exists" do
existing_user = users(:contributor_user)
assert_no_difference(["User.count", "Entry.count"]) do
assert_no_difference([ "User.count", "Entry.count" ]) do
post requests_path, params: {
entry: {
name: "Test User",
@@ -96,7 +96,7 @@ class RequestsControllerTest < ActionDispatch::IntegrationTest
end
test "should create entry with only one translation" do
assert_difference(["User.count", "Entry.count"], 1) do
assert_difference([ "User.count", "Entry.count" ], 1) do
post requests_path, params: {
entry: {
name: "Single Translation",
@@ -115,7 +115,7 @@ class RequestsControllerTest < ActionDispatch::IntegrationTest
end
test "should create entry with multiple translations" do
assert_difference(["User.count", "Entry.count"], 1) do
assert_difference([ "User.count", "Entry.count" ], 1) do
post requests_path, params: {
entry: {
name: "Multi Lingual",