diff options
author | Azul <azul@leap.se> | 2014-07-17 11:18:57 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-07-17 11:18:57 +0200 |
commit | e8a3df62d14c8dd775811f4af885cf7e76d5d3f6 (patch) | |
tree | 99905fc826fbcdf0634be3b31945e6df8c7e7a1e /test/integration/api/smtp_cert_test.rb | |
parent | bb10a669e1129c662ba01f223bd5a0ee7f2a0344 (diff) |
clean up error assertions in tests
We're not testing the redirects anymore. But the error messages should be pretty clear already. We can start testing redirects again once we redirect to different places for different actions.
Diffstat (limited to 'test/integration/api/smtp_cert_test.rb')
-rw-r--r-- | test/integration/api/smtp_cert_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api/smtp_cert_test.rb b/test/integration/api/smtp_cert_test.rb index aee52cf..b1bfd43 100644 --- a/test/integration/api/smtp_cert_test.rb +++ b/test/integration/api/smtp_cert_test.rb @@ -42,7 +42,7 @@ class SmtpCertTest < ApiIntegrationTest test "fetching smtp certs requires email account" do login post '/1/smtp_cert', {}, RACK_ENV - assert_json_response error: I18n.t(:not_authorized) + assert_access_denied end test "no anonymous smtp certs" do |