Add test coverage for the require_unauthenticated_access redirect
This commit is contained in:
@@ -9,6 +9,15 @@ class SessionsControllerTest < ActionDispatch::IntegrationTest
|
|||||||
assert_response :success
|
assert_response :success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "new redirects authenticated users" do
|
||||||
|
sign_in_as :kevin
|
||||||
|
|
||||||
|
untenanted do
|
||||||
|
get new_session_path
|
||||||
|
assert_redirected_to root_url
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
test "create" do
|
test "create" do
|
||||||
identity = identities(:kevin)
|
identity = identities(:kevin)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user