Fix tests after removing the index action

The show action makes more sense in the controller. Also, the filter
scoped was failing due to Rails raising on missing actions (because we
have deleted the index action). Inlining the concern fixes it and clarifies
where this action is implemented.
This commit is contained in:
Jorge Manrubia
2025-06-05 09:12:07 +02:00
parent de87f4ed6c
commit 540254def4
3 changed files with 5 additions and 21 deletions
@@ -1,14 +1,6 @@
require "test_helper"
class UsersControllerTest < ActionDispatch::IntegrationTest
test "index" do
sign_in_as :kevin
get users_path
assert_in_body users(:david).name
assert_in_body users(:kevin).name
end
test "new" do
get new_user_path(params: { join_code: "bad" })
assert_response :forbidden