From 094ee717f710ea4cf81d221c5bf9660b805da9b1 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sun, 26 Feb 2023 20:20:19 -0600 Subject: AƱade spec para refresh_tokens MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spec/controllers/authentications_controller_spec.rb | 1 - spec/controllers/refresh_tokens_controller_spec.rb | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 spec/controllers/refresh_tokens_controller_spec.rb (limited to 'spec/controllers') diff --git a/spec/controllers/authentications_controller_spec.rb b/spec/controllers/authentications_controller_spec.rb index 5a36544..43e7439 100644 --- a/spec/controllers/authentications_controller_spec.rb +++ b/spec/controllers/authentications_controller_spec.rb @@ -5,5 +5,4 @@ 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 diff --git a/spec/controllers/refresh_tokens_controller_spec.rb b/spec/controllers/refresh_tokens_controller_spec.rb new file mode 100644 index 0000000..e8f9a66 --- /dev/null +++ b/spec/controllers/refresh_tokens_controller_spec.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +require 'rails_helper' + +RSpec.describe Api::RefreshTokensController, type: :controller do + it { should route(:post, '/api/refresh_tokens').to(action: :create) } +end -- cgit v1.2.3