79187596

Date: 2024-11-14 06:30:26
Score: 1
Natty:
Report link

Since strings is an array of strings of the generated text, if one wants to test for a longer string or a sentence, you need to join the values from strings.

doing it like:

{ expect(PDF::Inspector::Text.analyze( my_pdf ).strings.join(" ").to include "Object 10" }

...should give you what you need.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ferdinand