mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 10:11:37 +01:00
Use strings instead of numeric literals and remove rubocop:disable
in cache spec (#27742)
This commit is contained in:
parent
dc0bf87090
commit
a688a9ed20
1 changed files with 3 additions and 5 deletions
|
@ -171,12 +171,10 @@ describe 'Caching behavior' do
|
||||||
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Moderator')) }
|
let(:user) { Fabricate(:user, role: UserRole.find_by(name: 'Moderator')) }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
# rubocop:disable Style/NumericLiterals
|
status = Fabricate(:status, account: alice, id: '110224538612341312')
|
||||||
status = Fabricate(:status, account: alice, id: 110224538612341312)
|
Fabricate(:status, account: alice, id: '110224538643211312', visibility: :private)
|
||||||
Fabricate(:status, account: alice, id: 110224538643211312, visibility: :private)
|
|
||||||
Fabricate(:invite, code: 'abcdef')
|
Fabricate(:invite, code: 'abcdef')
|
||||||
Fabricate(:poll, status: status, account: alice, id: 12345)
|
Fabricate(:poll, status: status, account: alice, id: '12345')
|
||||||
# rubocop:enable Style/NumericLiterals
|
|
||||||
|
|
||||||
user.account.follow!(alice)
|
user.account.follow!(alice)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue