Add missing params wrapping to some tests
This commit is contained in:
parent
75c8c7c0b3
commit
5b706cc7d4
5 changed files with 17 additions and 13 deletions
|
@ -44,10 +44,11 @@ describe Admin::ProceduresController, type: :controller do
|
|||
|
||||
describe 'GET #index with sorting and pagination' do
|
||||
subject {
|
||||
get :index,
|
||||
get :index, params: {
|
||||
'procedures_smart_listing[page]': 1,
|
||||
'procedures_smart_listing[per_page]': 10,
|
||||
'procedures_smart_listing[sort][id]': 'asc'
|
||||
}
|
||||
}
|
||||
|
||||
it { expect(subject.status).to eq(200) }
|
||||
|
@ -61,10 +62,11 @@ describe Admin::ProceduresController, type: :controller do
|
|||
|
||||
describe 'GET #archived with sorting and pagination' do
|
||||
subject {
|
||||
get :archived,
|
||||
get :archived, params: {
|
||||
'procedures_smart_listing[page]': 1,
|
||||
'procedures_smart_listing[per_page]': 10,
|
||||
'procedures_smart_listing[sort][libelle]': 'asc'
|
||||
}
|
||||
}
|
||||
|
||||
it { expect(subject.status).to eq(200) }
|
||||
|
@ -78,10 +80,11 @@ describe Admin::ProceduresController, type: :controller do
|
|||
|
||||
describe 'GET #draft with sorting and pagination' do
|
||||
subject {
|
||||
get :draft,
|
||||
get :draft, params: {
|
||||
'procedures_smart_listing[page]': 1,
|
||||
'procedures_smart_listing[per_page]': 10,
|
||||
'procedures_smart_listing[sort][published_at]': 'asc'
|
||||
}
|
||||
}
|
||||
|
||||
it { expect(subject.status).to eq(200) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue