0
0
Fork 0

Fix spec descriptions around configurable limit values (#31079)

This commit is contained in:
Matt Jankowski 2024-07-22 04:02:31 -04:00 committed by GitHub
parent 5a60a3b80c
commit 6e4305de69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 13 deletions

View file

@ -592,7 +592,7 @@ RSpec.describe Account do
expect(results).to eq [match]
end
it 'limits by 10 by default' do
it 'limits result count by default value' do
stub_const('Account::Search::DEFAULT_LIMIT', 1)
2.times { Fabricate(:account, display_name: 'Display Name') }
results = described_class.advanced_search_for('display', account)