Remove hard reference from status pin validator spec (#30432)

pull/2720/head
Matt Jankowski 2024-05-27 05:20:28 -04:00 committed by GitHub
parent 404e203d41
commit 564ebfefcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ RSpec.describe StatusPinValidator do
end
end
context 'when pin.account.status_pins.count > 4 && pin.account.local?' do
let(:count) { 5 }
context 'when pin account is local and has too many pins' do
let(:count) { described_class::PIN_LIMIT + 1 }
let(:local) { true }
it 'calls errors.add' do