You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
456 B

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