0
0
Fork 0

Show exact number of followers/statuses on export page/in tooltip (#8199)

* Show exact number of followers/statuses on export page/in tooltip

* Fix tests
This commit is contained in:
Eugen Rochko 2018-08-14 21:56:17 +02:00 committed by GitHub
parent ec2c516ab8
commit aaac14b8ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 36 additions and 17 deletions

View file

@ -48,17 +48,17 @@ describe Export do
describe 'total_follows' do
it 'returns the total number of the followed accounts' do
target_accounts.each(&account.method(:follow!))
expect(Export.new(account).total_follows).to eq 2
expect(Export.new(account.reload).total_follows).to eq 2
end
it 'returns the total number of the blocked accounts' do
target_accounts.each(&account.method(:block!))
expect(Export.new(account).total_blocks).to eq 2
expect(Export.new(account.reload).total_blocks).to eq 2
end
it 'returns the total number of the muted accounts' do
target_accounts.each(&account.method(:mute!))
expect(Export.new(account).total_mutes).to eq 2
expect(Export.new(account.reload).total_mutes).to eq 2
end
end
end