summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
AgeCommit message (Collapse)Author
2022-07-17refactor test suiteDan Allen
2022-07-17move definition of TareFirstPageContentStreamNoop module in test suiteDan Allen
2022-07-16move helper for visually_match matcher into same fileDan Allen
2022-07-16organize PDF inspectors in test suite into separate filesDan Allen
2022-07-16organize monkey patches in test suite into separate filesDan Allen
2022-07-16organize custom RSpec matchers into separate filesDan Allen
2022-07-12update debug mode for to_pdf helper in test suite to work when output is a ↵Dan Allen
Pathname
2022-07-08augment have_message matcher to assert that there are no additional messagesDan Allen
2022-06-25assert file in addition to lineno in warning message for cannot fit errorDan Allen
2022-06-24don't join text on different pages in lines helper in test suiteDan Allen
2022-06-16include page number on rectangle extracted by rectangle inspector in test suiteDan Allen
2022-06-14use enhanced RectInspector in test suite that can pick up fill and stroke colorDan Allen
2022-06-05enhance with_tmp_file to accept tmpdir option or write to spec/tmp by defaultDan Allen
2022-05-28resolves #2216 patch prawn-gmagick to reread bit depth of a PNG image if it ↵Dan Allen
extracts the wrong value (PR #2217)
2022-05-17use keyword argument for relative option on fixture_file helper [no ci]Dan Allen
2022-05-07allow to_pdf_file spec helper to override backend keyDan Allen
2022-05-07don't mutate pdf_theme in spec helperDan Allen
2022-05-03resolves #2128 make allocate_toc method reusable (PR #2129)Dan Allen
2022-05-03fix warning in log_messages matcher in test suiteDan Allen
2022-05-02protect against committing test with debug flag onDan Allen
2022-04-17use .any? in place of .find? where applicableDan Allen
2022-04-06resolves #2009 log error and skip table instead of raising error if cell ↵Dan Allen
content cannot fit into column width of table (PR #2021)
2022-04-05resolves #2004 make delimited blocks breakable by default (PR #2020)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-19fix lint errorDan Allen
2022-03-19remove requirement to wrap first argument to log_messages assertion as a ↵Dan Allen
nested array
2022-03-15add debug option to to_pdf helper to write test file to tmp directoryDan Allen
2022-03-08remove unused import in test suiteDan Allen
2022-03-08delegate to with_tmp_file in with_pdf_theme_file to create tmp fileDan Allen
2022-03-07use prawn-table release (PR #2006)Dan Allen
2022-03-06account for top/bottom padding when computing height of AsciiDoc table cell ↵Dan Allen
(PR #2005)
2022-03-05add helper to retrieve metadata for destinationDan Allen
2021-06-21add reasons why certain code style rules are disabled [skip ci]Dan Allen
2021-06-16upgrade RuboCop and adjust code to match fix for RegexpLiteral ruleDan Allen
2021-06-11change Style/BlockDelimiters to be line_count_based and update code to complyDan Allen
2021-06-06enforce no braces around Hash in last position of array and update code to ↵Dan Allen
comply
2021-06-02more closely align RuboCop rules with core and update code to fit [skip ci]Dan Allen
2021-04-28resolves #1915 support link attribute on icon macro (PR #1916)Dan Allen
2021-04-03make backend value dynamic when registering extended converter in test suiteDan Allen
2021-04-03add spec helper to create anonymous class and bind to unique constantDan Allen
2021-03-18update Rubocop and disable unnecessary disabling of Style/HashConversion ↵Dan Allen
rule [skip ci]
2021-02-16upgrade Rubocop and fix new warningsDan Allen
2021-01-20allow caller of to_pdf spec helper to override :safe option valueDan Allen
2021-01-20wrap outfile in Pathname in to_pdf spec helper when input is a PathnameDan Allen
2020-11-16raise error if pdftocairo cannot be found or fails to produce files when ↵Dan Allen
performing visual test
2020-11-16remove outdated comment in spec helper [skip ci]Dan Allen
2020-11-12use rspec conditionals to filter tests instead of a postfix conditional on ↵Dan Allen
the test or context (PR #1820) - use if and unless options provided by rspec to filter tests - delegate windows? to Gem.win_platform? to get a consistent result - add jruby? helper - add gem_available? helper to check if gem is available (delegating to Gem.loaded_specs.key?) - use Gem::Version to compare versions
2020-11-11detect Windows (more) correctlyDan Allen
2020-10-26add helper to write temporary theme file to avoid having to maintain so many ↵Dan Allen
fixtures
2020-10-13add warning if test not tagged with visual: true uses visually_match expectationDan Allen