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
488 B

  1. require 'rails_helper'
  2. describe Settings::Exports::FollowingAccountsController do
  3. before do
  4. sign_in Fabricate(:user), scope: :user
  5. end
  6. describe 'GET #index' do
  7. it 'returns a csv of the following accounts' do
  8. get :index, format: :csv
  9. expect(response).to have_http_status(:success)
  10. expect(response.content_type).to eq 'text/csv'
  11. expect(response.headers['Content-Disposition']).to eq 'attachment; filename="following_accounts.csv"'
  12. end
  13. end
  14. end