diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-16 00:27:09 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-16 00:27:09 +0200 |
commit | 4f25e3d042fa92ba39cd3994c1de72193b2b9eb0 (patch) | |
tree | 0d412918e4417d13495d9e17a3da2f952a2d14ae /spec/controllers | |
parent | 5b0cef9781af519a0a6ace1f429162ae05863bde (diff) |
Test case for new api endpoint
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/api/statuses_controller_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/controllers/api/statuses_controller_spec.rb b/spec/controllers/api/statuses_controller_spec.rb index 64e201f3c..d02cc9b29 100644 --- a/spec/controllers/api/statuses_controller_spec.rb +++ b/spec/controllers/api/statuses_controller_spec.rb @@ -20,6 +20,19 @@ RSpec.describe Api::StatusesController, type: :controller do end end + describe 'GET #context' do + let(:status) { Fabricate(:status, account: user.account) } + + before do + Fabricate(:status, account: user.account, thread: status) + end + + it 'returns http success' do + get :context, params: { id: status.id } + expect(response).to have_http_status(:success) + end + end + describe 'GET #home' do it 'returns http success' do get :home |