diff options
Diffstat (limited to 'spec/controllers/authentications_controller_spec.rb')
-rw-r--r-- | spec/controllers/authentications_controller_spec.rb | 9 |
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 |