diff --git a/README.md b/README.md index 36761c7..13b33ba 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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. diff --git a/test/controllers/.domains_controller_test.rb.kate-swp b/test/controllers/.domains_controller_test.rb.kate-swp new file mode 100644 index 0000000..934c1e8 Binary files /dev/null and b/test/controllers/.domains_controller_test.rb.kate-swp differ diff --git a/test/controllers/domains_controller_test.rb b/test/controllers/domains_controller_test.rb index 216edf7..53e7bf1 100644 --- a/test/controllers/domains_controller_test.rb +++ b/test/controllers/domains_controller_test.rb @@ -1,11 +1,17 @@ require "test_helper" class DomainsControllerTest < ActionDispatch::IntegrationTest + include Devise::Test::IntegrationHelpers setup do @domain = domains(:one) 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 assert_response :success end diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index 82f27e2..22312d9 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -3,9 +3,11 @@ # # 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 # # below each fixture, per the syntax in the comments below -# # -# one: {} -# # column: value -# # -# two: {} -# # column: value +# +bob: + email: "bob@example.net" + encrypted_password: <= Devise::Encryptor.digest(User, 'password') + +alice: + email: "alice@example.org" + encrypted_password: <= Devise::Encryptor.digest(User, 'password')