How to test pdf content generated by prawn-table
|Added at||2016-12-23 13:12|
pdf-inspector provides some useful methods for testing PDFs generated by Prawn. While testing strings is straightforward, I need a way to test that tables (generated by prawn-table) are generated correctly.
For example, I'm generating a table
I would like to include something like the following in a test
This does not work because prawn-table does not generate this as a single string, but as "Object", "10".
Are there any libraries out there that people recommend for testing content generated by prawn-table. Or is there a standard way to do this?