mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 04:02:07 +01:00
Reduce .times
usage in AccountStatusesCleanupPolicy
(#27947)
This commit is contained in:
parent
d2aacea8da
commit
371f355719
1 changed files with 4 additions and 4 deletions
|
@ -280,10 +280,10 @@ RSpec.describe AccountStatusesCleanupPolicy do
|
||||||
let(:account_statuses_cleanup_policy) { Fabricate(:account_statuses_cleanup_policy, account: account) }
|
let(:account_statuses_cleanup_policy) { Fabricate(:account_statuses_cleanup_policy, account: account) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
4.times { faved_primary.increment_count!(:favourites_count) }
|
faved_primary.status_stat.update(favourites_count: 4)
|
||||||
5.times { faved_secondary.increment_count!(:favourites_count) }
|
faved_secondary.status_stat.update(favourites_count: 5)
|
||||||
4.times { reblogged_primary.increment_count!(:reblogs_count) }
|
reblogged_primary.status_stat.update(reblogs_count: 4)
|
||||||
5.times { reblogged_secondary.increment_count!(:reblogs_count) }
|
reblogged_secondary.status_stat.update(reblogs_count: 5)
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when passed a max_id' do
|
context 'when passed a max_id' do
|
||||||
|
|
Loading…
Reference in a new issue