diff --git a/spec/features/instructeurs/instruction_spec.rb b/spec/features/instructeurs/instruction_spec.rb index 573a562b8..fb0b5acd6 100644 --- a/spec/features/instructeurs/instruction_spec.rb +++ b/spec/features/instructeurs/instruction_spec.rb @@ -187,6 +187,7 @@ feature 'Instructing a dossier:' do expect(files[2].filename.include?('horodatage/operation')).to be_truthy end + before { DownloadHelpers.clear_downloads } after { DownloadHelpers.clear_downloads } end diff --git a/spec/views/new_administrateur/procedures/invited_expert_list.html.haml_spec.rb b/spec/views/new_administrateur/procedures/invited_expert_list.html.haml_spec.rb index 675353a80..98aa12ef4 100644 --- a/spec/views/new_administrateur/procedures/invited_expert_list.html.haml_spec.rb +++ b/spec/views/new_administrateur/procedures/invited_expert_list.html.haml_spec.rb @@ -38,7 +38,7 @@ describe 'new_administrateur/procedures/invited_expert_list.html.haml', type: :v it 'has 2 experts and match array' do expect(@invited_expert_emails.count).to eq(2) - expect(@invited_expert_emails).to eq([expert.email, expert2.email]) + expect(@invited_expert_emails).to eq([expert.email, expert2.email].sort) end end end