Category "heredoc"

How here document works in shell

While doing the input redirection, the shell opens the file on the right side of '<' with file descriptor 0, but in the case of the heredoc there is no such

Use Ruby's heredoc syntax to read a regular expression

In my tests, I have a - somewhat longer, multi-line - HTML response containing a date and time. I thought I could use assert_match to compare the expected resul