diff options
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 |