Use strings instead of numeric literals and remove `rubocop:disable` in cache spec (#27742)

This commit is contained in:
Matt Jankowski 2023-11-07 10:20:00 -05:00 committed by GitHub
parent dc0bf87090
commit a688a9ed20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -171,12 +171,10 @@ describe 'Caching behavior' do
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Moderator')) }
before do
# rubocop:disable Style/NumericLiterals
status = Fabricate(:status, account: alice, id: 110224538612341312)
Fabricate(:status, account: alice, id: 110224538643211312, visibility: :private)
status = Fabricate(:status, account: alice, id: '110224538612341312')
Fabricate(:status, account: alice, id: '110224538643211312', visibility: :private)
Fabricate(:invite, code: 'abcdef')
Fabricate(:poll, status: status, account: alice, id: 12345)
# rubocop:enable Style/NumericLiterals
Fabricate(:poll, status: status, account: alice, id: '12345')
user.account.follow!(alice)
end