diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 16:14:21 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-02 16:14:21 +0200 |
commit | 6d7290f47c11c08b55d6066d5123b8b9f04cf0bc (patch) | |
tree | a6fa07815a3f70252afc24edc9f202862425dfcf /spec/controllers/api | |
parent | 31a0202546acb20094eb6367061e50f5525cc7ed (diff) |
Add API for getting info about authenticated user: /api/v1/accounts/verify_credentials
Diffstat (limited to 'spec/controllers/api')
-rw-r--r-- | spec/controllers/api/v1/accounts_controller_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 } |