Files
fizzy/test/controllers/sessions/transfers_controller_test.rb
T
Stanko Krtalić 98755844a1 Remove the internal API
* 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
2025-10-31 16:26:08 +01:00

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