Migrate to Rais 8.0
- Remove all Rodauth stuff and implement simple custom auth - Migrate from sprockets to propshaft, hack some bootstrap stuff
This commit is contained in:
parent
0198a22278
commit
c35c7da6e0
66 changed files with 518 additions and 684 deletions
15
test/controller_test.rb
Normal file
15
test/controller_test.rb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue