stream_entries_controller_spec.rb 597 B

12345678910111213141516171819
  1. require 'rails_helper'
  2. RSpec.describe StreamEntriesController, type: :controller do
  3. let(:alice) { Fabricate(:account, username: 'alice') }
  4. let(:status) { Fabricate(:status, account: alice) }
  5. describe 'GET #show' do
  6. it 'returns 200 with HTML' do
  7. get :show, account_username: alice.username, id: status.stream_entry.id
  8. expect(response).to have_http_status(:success)
  9. end
  10. it 'returns 200 with Atom' do
  11. get :show, account_username: alice.username, id: status.stream_entry.id, format: 'atom'
  12. expect(response).to have_http_status(:success)
  13. end
  14. end
  15. end