I am using axlsx gem to write contents to .xlsx file. I am using following code to stream the file to the browser:
send_data excel_package.to_stream.read, type: "application/xlsx", filename: filename
Now I want to write test cases for this and want to read the same file in my rspec. How can I do that ? I looked for other libraries that can read excel file, but all of those read from the disk.