diff options
author | HombreLaser <sebastian-440@live.com> | 2023-02-26 20:20:19 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-02-26 20:20:19 -0600 |
commit | 094ee717f710ea4cf81d221c5bf9660b805da9b1 (patch) | |
tree | d3b5d3169bb82c34eb2cb3a0f9d6da72ad5846f7 /spec/controllers | |
parent | 4a1faf270ae328a1a28d9f8f54d9a96ed41a1542 (diff) |
Añade spec para refresh_tokens
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/authentications_controller_spec.rb | 1 | ||||
-rw-r--r-- | spec/controllers/refresh_tokens_controller_spec.rb | 7 |
2 files changed, 7 insertions, 1 deletions
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 |