Add link to download summary in XLSX format again

It was removed in commit 128a8164 alongside everything related to the
legislation process summary.

Co-Authored-By: taitus <sebastia.roig@gmail.com>
This commit is contained in:
Javi Martín
2020-08-25 16:38:30 +02:00
parent 14df74fed7
commit b2b64ca8a0
10 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
require "rails_helper"
describe Legislation::ProcessesController do
let(:legislation_process) { create(:legislation_process, end_date: Date.current - 1.day) }
it "download excel file test" do
create(:legislation_question, process: legislation_process, title: "Question 1")
get :summary, params: { id: legislation_process, format: :xlsx }
expect(response).to be_success
end
end