Skip to content
Snippets Groups Projects
Commit 4f25e3d0 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Test case for new api endpoint

parent 5b0cef97
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,19 @@ RSpec.describe Api::StatusesController, type: :controller do ...@@ -20,6 +20,19 @@ RSpec.describe Api::StatusesController, type: :controller do
end end
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 describe 'GET #home' do
it 'returns http success' do it 'returns http success' do
get :home get :home
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment