0
0
Fork 0

Export and import show_reblogs together with following list (#10495)

* Refactor imports

* Export show_reblogs when exporting list of followed users

* Add support for importing show_reblogs with following collection

* Fix tests
This commit is contained in:
ThibG 2019-04-08 07:28:27 +02:00 committed by Eugen Rochko
parent 619bbc23ef
commit cb71c95e22
7 changed files with 112 additions and 17 deletions

View file

@ -32,10 +32,11 @@ describe Export do
target_accounts.each(&account.method(:follow!))
export = Export.new(account).to_following_accounts_csv
results = export.strip.split
results = export.strip.split("\n")
expect(results.size).to eq 2
expect(results.first).to eq 'one@local.host'
expect(results.size).to eq 3
expect(results.first).to eq 'Account address,Show boosts'
expect(results.second).to eq 'one@local.host,true'
end
end