Wrap params coverage nits (#2681)

* Add missing assert_response to signup API test

* Add JSON response format to joins#create
This commit is contained in:
Jeremy Daer
2026-03-09 21:53:43 -07:00
committed by GitHub
parent a52b6f1c87
commit d33aa8b757
2 changed files with 8 additions and 1 deletions
@@ -221,6 +221,8 @@ class FlatJsonParamsTest < ActionDispatch::IntegrationTest
post signup_path, params: { email_address: email }, as: :json
end
end
assert_response :created
end
test "complete signup with flat JSON" do
@@ -242,6 +244,7 @@ class FlatJsonParamsTest < ActionDispatch::IntegrationTest
post users_joins_path, params: { name: "Flat Join" }, as: :json
assert_response :no_content
assert_equal "Flat Join", users(:david).reload.name
end