Fix administrate pagination by pinning to an old version of kaminari

This commit is contained in:
Paul Chavard 2020-03-05 12:57:28 +01:00
parent 15e25b0c3e
commit e540dea929
3 changed files with 28 additions and 12 deletions

View file

@ -25,4 +25,20 @@ describe Manager::ProceduresController, type: :controller do
it { expect(response.body).to include('sub type de champ') }
end
describe '#index' do
render_views
let(:administration) { create(:administration) }
let!(:dossier) { create(:dossier) }
context 'sort by dossiers' do
before do
sign_in(administration)
get :index, params: { procedure: { direction: 'asc', order: 'dossiers' } }
end
it { expect(response.body).to include('1 dossier') }
end
end
end