logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

following_accounts_controller_spec.rb (434B)


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