闭社主体 forked from https://github.com/tootsuite/mastodon
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.

19 lines
499 B

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