diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-08-14 21:56:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-14 21:56:17 +0200 |
commit | aaac14b8ad1a2a9e3d58871feb07b1e78c5316c3 (patch) | |
tree | 3af07062d5ee5a31058afd7ca2ded4985f0d27e0 /spec | |
parent | ec2c516ab865ea63b5e7bc4405d0141d377e3e12 (diff) |
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
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/export_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/export_spec.rb b/spec/models/export_spec.rb index 6daa46145..277dcc526 100644 --- a/spec/models/export_spec.rb +++ b/spec/models/export_spec.rb @@ -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 |