Commit 4c7f2391 authored by Jasper Maes's avatar Jasper Maes

Rails5 fix no implicit conversion of Symbol into Integer

parent 3090c6b1
......@@ -16,7 +16,7 @@ module EE
end
def export_csv
ExportCsvWorker.perform_async(current_user.id, project.id, filter_params)
ExportCsvWorker.perform_async(current_user.id, project.id, filter_params.to_h)
index_path = project_issues_path(project)
redirect_to(index_path, notice: "Your CSV export has started. It will be emailed to #{current_user.notification_email} when complete.")
......
---
title: Rails5 fix no implicit conversion of Symbol into Integer
merge_request: 6582
author: Jasper Maes
type: fixed
......@@ -29,13 +29,13 @@ describe 'Issues csv' do
end
it 'triggers an email export' do
expect(ExportCsvWorker).to receive(:perform_async).with(user.id, project.id, hash_including(project_id: project.id))
expect(ExportCsvWorker).to receive(:perform_async).with(user.id, project.id, hash_including("project_id" => project.id))
request_csv
end
it "doesn't send request params to ExportCsvWorker" do
expect(ExportCsvWorker).to receive(:perform_async).with(anything, anything, hash_excluding(controller: anything, action: anything))
expect(ExportCsvWorker).to receive(:perform_async).with(anything, anything, hash_excluding("controller" => anything, "action" => anything))
request_csv
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment