Fix spec for XLS export

pull/7179/head
Wieland Lindenthal 6 years ago
parent 8d9736f0c4
commit 836ed2bc5c
  1. 6
      modules/xls_export/spec/lib/custom_field_xls_export_spec.rb

@ -62,16 +62,14 @@ describe "WorkPackageXlsExport Custom Fields" do
end end
let(:export) do let(:export) do
OpenProject::XlsExport::WorkPackageXlsExport.new( OpenProject::XlsExport::WorkPackageXlsExport.new query
query
)
end end
def load_sheet(export) def load_sheet(export)
f = Tempfile.new 'result.xls' f = Tempfile.new 'result.xls'
begin begin
f.binmode f.binmode
f.write export.list.content f.write export.list(&:content)
ensure ensure
f.close f.close
end end

Loading…
Cancel
Save