From a528bd72a25cb98dbfc91a3a273d854c867b9c0e Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Wed, 14 Sep 2016 13:45:04 +0200 Subject: [PATCH] adapt spec expectation to changes in b5e9fe0 --- spec/controllers/work_packages_controller_spec.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/controllers/work_packages_controller_spec.rb b/spec/controllers/work_packages_controller_spec.rb index a7fd55708e..c196cb125d 100644 --- a/spec/controllers/work_packages_controller_spec.rb +++ b/spec/controllers/work_packages_controller_spec.rb @@ -178,9 +178,11 @@ describe WorkPackagesController, type: :controller do expect(WorkPackage::Exporter).to receive(:csv).with(work_packages, query) .and_return(mock_csv) - expect(controller).to receive(:send_data).with(mock_csv, - type: 'text/csv; charset=utf-8; header=present', - filename: "#{query.name}.csv") do |_| + expect(controller) + .to receive(:send_data) + .with(mock_csv.to_s, + type: 'text/csv; header=present; charset=utf-8;', + disposition: "attachment; filename=#{query.name}.csv") do |_| # We need to render something because otherwise # the controller will and he will not find a suitable template controller.render text: 'success'