Emergency commit after a dirty shutdown.
This commit is contained in:
parent
2fe142ed86
commit
c671cc2dc1
@ -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.
|
||||||
|
|
||||||
|
|||||||
BIN
test/controllers/.domains_controller_test.rb.kate-swp
Normal file
BIN
test/controllers/.domains_controller_test.rb.kate-swp
Normal file
Binary file not shown.
@ -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
|
||||||
|
|||||||
14
test/fixtures/users.yml
vendored
14
test/fixtures/users.yml
vendored
@ -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')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user