Browse Source

Test case for new api endpoint

master
Eugen Rochko 8 years ago
parent
commit
4f25e3d042
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      spec/controllers/api/statuses_controller_spec.rb

+ 13
- 0
spec/controllers/api/statuses_controller_spec.rb View File

@ -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

Loading…
Cancel
Save