No commit activity in last 3 years
No release in over 3 years
A Capybara extension to allow testing of Wicked PDF content.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
>= 0
~> 10.0
~> 3.0

Runtime

>= 2.1.0
 Project Readme

Wicked PDF Capybara

Wicked PDF Capybara is an extension on the Capybara testing library for PDFs. This gem parses the text content of a document generated with WickedPDF to allow testing of content.

Install

Add to the Gemfile of your project. Capybara must be included for this to work.

gem 'capybara'
gem 'wicked_pdf_capybara'

Usage

In an integration test, visit your pdf page and call pdf_text on your page to get the entire text from the document.

expect(page.pdf_text).to include('Success')

License

The gem is available as open source under the terms of the MIT License.