Add auth and ruby update
This commit is contained in:
parent
5d50194f39
commit
fbf6923835
43 changed files with 614 additions and 64 deletions
8
test/controllers/backoffice_controller_test.rb
Normal file
8
test/controllers/backoffice_controller_test.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
require "test_helper"
|
||||
|
||||
class BackofficeControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get show" do
|
||||
get backoffice_show_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
8
test/controllers/public_controller_test.rb
Normal file
8
test/controllers/public_controller_test.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
require "test_helper"
|
||||
|
||||
class PublicControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get root" do
|
||||
get public_root_url
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
10
test/fixtures/accounts.yml
vendored
Normal file
10
test/fixtures/accounts.yml
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
one:
|
||||
email: freddie@queen.com
|
||||
password_hash: <%= RodauthApp.rodauth.allocate.password_hash("password") %>
|
||||
status: verified
|
||||
|
||||
two:
|
||||
email: brian@queen.com
|
||||
password_hash: <%= RodauthApp.rodauth.allocate.password_hash("password") %>
|
||||
status: verified
|
||||
Loading…
Add table
Add a link
Reference in a new issue