diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-21 21:03:11 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-21 21:03:11 -0600 |
commit | 8d64b077fbbd5f291f09788d64c5ad97f07173de (patch) | |
tree | cbec82d520eea539b26f329fdddb94c08841dbd4 /spec/controllers/authentications_controller_spec.rb | |
parent | 80b7e4fe942638eb69a686e06e3ca99c06791da6 (diff) |
Añade spec de rutas de autenticación
Diffstat (limited to 'spec/controllers/authentications_controller_spec.rb')
-rw-r--r-- | spec/controllers/authentications_controller_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/controllers/authentications_controller_spec.rb b/spec/controllers/authentications_controller_spec.rb new file mode 100644 index 0000000..5a36544 --- /dev/null +++ b/spec/controllers/authentications_controller_spec.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe Api::AuthenticationsController, type: :controller do + it { should route(:post, '/api/authenticate').to(action: :create) } + it { should route(:delete, '/api/logout').to(action: :destroy) } + it { should route(:post, '/api/refresh_token').to(action: :refresh)} +end |