This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-11 13:00:43 -07:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
describe Settings::Exports::FollowingAccountsController do
|
2017-04-28 06:12:37 -07:00
|
|
|
render_views
|
|
|
|
|
2017-04-11 13:00:43 -07:00
|
|
|
describe 'GET #index' do
|
|
|
|
it 'returns a csv of the following accounts' do
|
2017-05-29 09:05:01 -07:00
|
|
|
user = Fabricate(:user)
|
|
|
|
user.account.follow!(Fabricate(:account, username: 'username', domain: 'domain'))
|
|
|
|
|
|
|
|
sign_in user, scope: :user
|
2017-04-11 13:00:43 -07:00
|
|
|
get :index, format: :csv
|
|
|
|
|
2019-04-07 22:28:27 -07:00
|
|
|
expect(response.body).to eq "Account address,Show boosts\nusername@domain,true\n"
|
2017-04-11 13:00:43 -07:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|