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

  1. require 'rails_helper'
  2. describe Settings::Exports::BlockedAccountsController do
  3. render_views
  4. describe 'GET #index' do
  5. it 'returns a csv of the blocking accounts' do
  6. user = Fabricate(:user)
  7. user.account.block!(Fabricate(:account, username: 'username', domain: 'domain'))
  8. sign_in user, scope: :user
  9. get :index, format: :csv
  10. expect(response.body).to eq "username@domain\n"
  11. end
  12. end
  13. end