remove procedure_presentation from export
This commit is contained in:
parent
71bcbbc440
commit
f850924dc0
3 changed files with 9 additions and 6 deletions
|
@ -36,9 +36,9 @@ RSpec.describe Dossiers::ExportLinkComponent, type: :component do
|
|||
end
|
||||
end
|
||||
|
||||
context 'when export is for a presentation' do
|
||||
context 'when export is from a presentation' do
|
||||
before do
|
||||
export.update!(procedure_presentation: procedure_presentation)
|
||||
export.update!(sorted_column: procedure.default_sorted_column)
|
||||
end
|
||||
|
||||
it 'display the persisted dossiers count' do
|
||||
|
@ -48,7 +48,7 @@ RSpec.describe Dossiers::ExportLinkComponent, type: :component do
|
|||
end
|
||||
|
||||
context "when the export is not available" do
|
||||
let(:export) { create(:export, :pending, groupe_instructeurs: [groupe_instructeur], procedure_presentation: procedure_presentation, created_at: 10.minutes.ago) }
|
||||
let(:export) { create(:export, :pending, groupe_instructeurs: [groupe_instructeur], sorted_column: procedure.default_sorted_column, created_at: 10.minutes.ago) }
|
||||
|
||||
before do
|
||||
create_list(:dossier, 3, :en_construction, procedure: procedure, groupe_instructeur: groupe_instructeur)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue