From 6d7290f47c11c08b55d6066d5123b8b9f04cf0bc Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 2 Oct 2016 16:14:21 +0200 Subject: Add API for getting info about authenticated user: /api/v1/accounts/verify_credentials --- spec/controllers/api/v1/accounts_controller_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec') diff --git a/spec/controllers/api/v1/accounts_controller_spec.rb b/spec/controllers/api/v1/accounts_controller_spec.rb index bc7c78c70..7a67f1c56 100644 --- a/spec/controllers/api/v1/accounts_controller_spec.rb +++ b/spec/controllers/api/v1/accounts_controller_spec.rb @@ -18,6 +18,13 @@ RSpec.describe Api::V1::AccountsController, type: :controller do end end + describe 'GET #verify_credentials' do + it 'returns http success' do + get :verify_credentials + expect(response).to have_http_status(:success) + end + end + describe 'GET #statuses' do it 'returns http success' do get :statuses, params: { id: user.account.id } -- cgit