remove /download from csv file url

This commit is contained in:
Arpit Jalan
2014-11-19 22:39:23 +05:30
parent a211f542f5
commit aebf36c356
4 changed files with 10 additions and 9 deletions

View File

@ -19,12 +19,12 @@ describe Admin::ExportCsvController do
export = ExportCsv.new()
ExportCsv.expects(:get_download_path).with(export_filename).returns(export)
subject.expects(:send_file).with(export)
get :download, id: export_filename
get :show, id: export_filename
end
it "returns 404 when the export file does not exist" do
ExportCsv.expects(:get_download_path).returns(nil)
get :download, id: export_filename
get :show, id: export_filename
response.should be_not_found
end