summaryrefslogtreecommitdiff
path: root/spec/open_spec.rb
AgeCommit message (Collapse)Author
2022-10-30switch from EOS to END as heredoc delimiterDan Allen
2022-10-29remove unused breakable tag in test suiteDan Allen
2022-04-14add enough content in open block test to ensure assertion is relevant [skip ci]Dan Allen
2022-04-05resolves #2003 compute extent of content in scratch document to arrange ↵Dan Allen
content block in primary document * introduce arrange_block helper to handle positioning content block in primary document * reimplement new dry_run to compute the extent and start position of the content block instead of just the height * stop rendering at page boundary in scratch document when computing start position of content block to avoid unnecessary work * ensure that caption stays with start of content block when arranging content block * prevent arrange_block from starting content block on page when no content from block fits on that page * avoid converting content that overruns page in AsciiDoc table cell in scratch document * encapsulate push/pop scratch in arrange_block * add tests for the arrange_block helper * prevent nested breakable blocks from flowing beyond first page when performing on single page only * switch dry_run method to accept keyword arguments * avoid arrange_block when converting open block when possible * include negative tests for image taller than page at top of block * verify borders and backgrounds are not drawn in scratch document * add test to verify behavior of stop_if_first_page_empty * include sanity check before drawing background and border over extent * add rdoc to dry_run and arrange_block help methods * reuse computed extent as TOC extent * remove unused code * raise error if table caption does not fit on single page * add test that footnotes are not pushed down if height exceeds height of page
2022-03-13add dedicated tests for title on open blockDan Allen
2019-12-19add missing visual tag on open block testsDan Allen
2019-12-03enforce magic comment for frozen string literalDan Allen
2019-12-02fix lint errors in test suiteDan Allen
2019-11-28remove admonition from open block test to exercise logic that prevents ↵Dan Allen
duplication of footnotes
2019-11-28move open block specs to dedicated spec fileDan Allen