mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-21 14:23:04 +00:00
Test case for new api endpoint
This commit is contained in:
parent
5b0cef9781
commit
4f25e3d042
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue