summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-21 21:03:11 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-21 21:03:11 -0600
commit8d64b077fbbd5f291f09788d64c5ad97f07173de (patch)
treecbec82d520eea539b26f329fdddb94c08841dbd4 /spec/controllers
parent80b7e4fe942638eb69a686e06e3ca99c06791da6 (diff)
Añade spec de rutas de autenticación
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/authentications_controller_spec.rb9
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