闭社主体 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.

17 lines
425 B

  1. require 'rails_helper'
  2. describe Settings::Exports::MutedAccountsController do
  3. render_views
  4. describe 'GET #index' do
  5. it 'returns a csv of the muting accounts' do
  6. user = Fabricate(:user)
  7. user.account.mute!(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