Audofix Rubocop Style/WordArray (#23739)
This commit is contained in:
parent
4552685f6b
commit
bf785df9fe
17 changed files with 27 additions and 50 deletions
|
@ -895,7 +895,7 @@ RSpec.describe Account, type: :model do
|
|||
|
||||
describe 'partitioned' do
|
||||
it 'returns a relation of accounts partitioned by domain' do
|
||||
matches = ['a', 'b', 'a', 'b']
|
||||
matches = %w(a b a b)
|
||||
matches.size.times.to_a.shuffle.each do |index|
|
||||
matches[index] = Fabricate(:account, domain: matches[index])
|
||||
end
|
||||
|
|
|
@ -262,7 +262,7 @@ RSpec.describe AccountStatusesCleanupPolicy, type: :model do
|
|||
let!(:direct_message) { Fabricate(:status, created_at: 1.year.ago, account: account, visibility: :direct) }
|
||||
let!(:self_faved) { Fabricate(:status, created_at: 1.year.ago, account: account) }
|
||||
let!(:self_bookmarked) { Fabricate(:status, created_at: 1.year.ago, account: account) }
|
||||
let!(:status_with_poll) { Fabricate(:status, created_at: 1.year.ago, account: account, poll_attributes: { account: account, voters_count: 0, options: ['a', 'b'], expires_in: 2.days }) }
|
||||
let!(:status_with_poll) { Fabricate(:status, created_at: 1.year.ago, account: account, poll_attributes: { account: account, voters_count: 0, options: %w(a b), expires_in: 2.days }) }
|
||||
let!(:status_with_media) { Fabricate(:status, created_at: 1.year.ago, account: account) }
|
||||
let!(:faved4) { Fabricate(:status, created_at: 1.year.ago, account: account) }
|
||||
let!(:faved5) { Fabricate(:status, created_at: 1.year.ago, account: account) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue