Reduce .times
usage in request and controller specs (#27949)
This commit is contained in:
parent
f7cb64a184
commit
32e19e3af6
12 changed files with 24 additions and 24 deletions
|
@ -35,7 +35,7 @@ RSpec.describe 'Domain Allows' do
|
|||
end
|
||||
|
||||
context 'when there are allowed domains' do
|
||||
let!(:domain_allows) { Fabricate.times(5, :domain_allow) }
|
||||
let!(:domain_allows) { Fabricate.times(2, :domain_allow) }
|
||||
let(:expected_response) do
|
||||
domain_allows.map do |domain_allow|
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ RSpec.describe 'Domain Allows' do
|
|||
end
|
||||
|
||||
context 'with limit param' do
|
||||
let(:params) { { limit: 2 } }
|
||||
let(:params) { { limit: 1 } }
|
||||
|
||||
it 'returns only the requested number of allowed domains' do
|
||||
subject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue