From 8d64b077fbbd5f291f09788d64c5ad97f07173de Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 21 Feb 2023 21:03:11 -0600 Subject: AƱade spec de rutas de autenticaciĆ³n MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/controllers/authentications_controller_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 spec/controllers/authentications_controller_spec.rb (limited to 'spec') 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 -- cgit v1.2.3