diff options
author | Azul <azul@leap.se> | 2014-05-26 09:31:36 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2014-05-26 09:31:36 +0200 |
commit | 00d5adc90ccadc7f4a2a0d54a5a31a1ad02f05be (patch) | |
tree | 2e9655ed7597c3a9d7c520d04f5991d62e7b345b /test/functional/v1/smtp_certs_controller_test.rb | |
parent | 3a84578cf33685800c9216cfb4da12ea1fb0032f (diff) |
change from GET to POST for certs
We create them. let's reflect that in the verb.
Diffstat (limited to 'test/functional/v1/smtp_certs_controller_test.rb')
-rw-r--r-- | test/functional/v1/smtp_certs_controller_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/v1/smtp_certs_controller_test.rb b/test/functional/v1/smtp_certs_controller_test.rb index 169f414..ae1a214 100644 --- a/test/functional/v1/smtp_certs_controller_test.rb +++ b/test/functional/v1/smtp_certs_controller_test.rb @@ -4,14 +4,14 @@ class V1::SmtpCertsControllerTest < ActionController::TestCase test "no smtp cert without login" do with_config allow_anonymous_certs: true do - get :show, format: 'json' + post :create assert_access_denied end end test "require service level with email" do login - get :show + post :create assert_access_denied end @@ -19,7 +19,7 @@ class V1::SmtpCertsControllerTest < ActionController::TestCase login effective_service_level: ServiceLevel.new(id: 2) cert = expect_cert(@current_user.email_address) cert.expects(:fingerprint).returns('fingerprint') - get :show + post :create assert_response :success assert_equal cert.to_s, @response.body end |