98755844a1
* Bind sessions to identities * Remove references to the identity token * Move email changes to identity * Move account menu into a turbo-frame * Create tenants from a tenanted route
23 lines
555 B
Ruby
23 lines
555 B
Ruby
require "test_helper"
|
|
|
|
class Sessions::TransfersControllerTest < ActionDispatch::IntegrationTest
|
|
test "show renders when not signed in" do
|
|
untenanted do
|
|
get session_transfer_path("some-token")
|
|
|
|
assert_response :success
|
|
end
|
|
end
|
|
|
|
test "update establishes a session when the code is valid" do
|
|
identity = identities(:david)
|
|
|
|
untenanted do
|
|
put session_transfer_path(identity.transfer_id)
|
|
|
|
assert_redirected_to session_menu_url(script_name: nil)
|
|
assert parsed_cookies.signed[:session_token]
|
|
end
|
|
end
|
|
end
|