summaryrefslogtreecommitdiff
path: root/test/functional/v1/smtp_certs_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/v1/smtp_certs_controller_test.rb')
-rw-r--r--test/functional/v1/smtp_certs_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/v1/smtp_certs_controller_test.rb b/test/functional/v1/smtp_certs_controller_test.rb
index ba70410..1b03995 100644
--- a/test/functional/v1/smtp_certs_controller_test.rb
+++ b/test/functional/v1/smtp_certs_controller_test.rb
@@ -24,6 +24,12 @@ class V1::SmtpCertsControllerTest < ActionController::TestCase
assert_equal cert.to_s, @response.body
end
+ test "fail to create cert when disabled" do
+ login :enabled? => false
+ post :create
+ assert_access_denied
+ end
+
protected
def expect_cert(email)