Emergency commit after a dirty shutdown.

This commit is contained in:
Jez Caudle 2023-05-23 09:29:12 +01:00
parent 2fe142ed86
commit c671cc2dc1
4 changed files with 16 additions and 8 deletions

View File

@ -1,6 +1,6 @@
# Ruby on Rails front end for OpenSMTPD. # Ruby on Rails front end for OpenSMTPD.
An ISC Licensed RoR app to manage your OpemSMTPD users. An ISC Licensed RoR app to manage your OpenSMTPD users.
## OpenBSD Instructions. ## OpenBSD Instructions.

Binary file not shown.

View File

@ -1,11 +1,17 @@
require "test_helper" require "test_helper"
class DomainsControllerTest < ActionDispatch::IntegrationTest class DomainsControllerTest < ActionDispatch::IntegrationTest
include Devise::Test::IntegrationHelpers
setup do setup do
@domain = domains(:one) @domain = domains(:one)
end end
test "should get index" do test "not should get index because we are not logged in" do
get domains_url
assert_response :success
end
test "should get index because we are logged in" do
get domains_url get domains_url
assert_response :success assert_response :success
end end

View File

@ -3,9 +3,11 @@
# # This model initially had no columns defined. If you add columns to the # # This model initially had no columns defined. If you add columns to the
# # model remove the "{}" from the fixture names and add the columns immediately # # model remove the "{}" from the fixture names and add the columns immediately
# # below each fixture, per the syntax in the comments below # # below each fixture, per the syntax in the comments below
# # #
# one: {} bob:
# # column: value email: "bob@example.net"
# # encrypted_password: <= Devise::Encryptor.digest(User, 'password')
# two: {}
# # column: value alice:
email: "alice@example.org"
encrypted_password: <= Devise::Encryptor.digest(User, 'password')