I'm using Prawn + Prawnto in my Rails application to generate pdfs. I
would like to know how could I test it using Cucumber (assert that the
pdf was generated and sent to the browser) and how could I test the
pdf contents with Rspec. Has anyone tried this?
Thanks!
To check in Cucumber, you could have a line like "Then I should see "%PDF-1.3".
One possibility for testing content of the PDF would be to use
pdf-inspector, just like Prawn does in its specs.
Cheers,
Daniel
--
You received this message because you are subscribed to the Google Groups "Prawn" group.
To post to this group, send email to prawn...@googlegroups.com.
To unsubscribe from this group, send email to prawn-ruby+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/prawn-ruby?hl=en.
Though not an answer to your question, you could avoid using Prawnto,
and that would solve the problem :)
http://wiki.github.com/sandal/prawn/using-prawn-in-rails
-Daniel
--
You received this message because you are subscribed to the Google Groups "Prawn" group.
To post to this group, send email to prawn...@googlegroups.com.
To unsubscribe from this group, send email to prawn-ruby+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/prawn-ruby?hl=en.