- Remove all Rodauth stuff and implement simple custom auth - Migrate from sprockets to propshaft, hack some bootstrap stuff
15 lines
333 B
Ruby
15 lines
333 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "test_helper"
|
|
|
|
class ControllerTest < ActionDispatch::IntegrationTest
|
|
def login(email, password)
|
|
post "/session", params: { email_address: email, password: password }
|
|
assert_redirected_to "/"
|
|
end
|
|
|
|
def logout
|
|
delete "/session"
|
|
assert_redirected_to "/session/new"
|
|
end
|
|
end
|