summaryrefslogtreecommitdiff
path: root/test/preamble_test.rb
AgeCommit message (Collapse)Author
2024-02-19fix warning caused by duplicate test descriptionDan Allen
2024-02-19resolves #3602 move abstract inside info tag in DocBook output (PR #4508)Dan Allen
2021-07-31omit_parentheses where possible in test codeDan Allen
2021-05-27fix spaces and indentation in test suiteDan Allen
2021-04-30leave empty line after magic comment [skip ci]Dan Allen
2019-02-10resolves #3054 never mutate strings; add `frozen_string_literal: true` ↵Dan Allen
comment to source files (PR #3055) - replace gsub! and sub! with gsub and sub, respectively - add `frozen_string_literal: true` magic comment to all Ruby source files - see https://www.mikeperham.com/2018/02/28/ruby-optimization-with-one-magic-comment/
2019-02-02use indented (squiggly) heredoc strings in preamble_test and manpage_testDan Allen
2019-01-06switch to modern hash syntaxDan Allen
- switch to modern hash syntax (from :key => value to key: value) - put space inside hash brackets (from {key: value} to { key: value } - use dangling comma on last entry of multi-line hash
2019-01-06use require_relative instead of modifying $LOAD_PATHDan Allen
- use require_relative in place of require when it relied on $LOAD_PATH manipulation - configure bin scripts to work with require_relative - rename ROOT_PATH to ROOT_DIR - rename DATA_PATH to DATA_DIR - rename STYLESHEETS_DATA_PATH to STYLESHEETS_DIR - define LIB_DIR - simplify test helper require and setup - add bindir helper to test suite - remove unneeded constants in test helper - reorder autoload statements - require version directly instead of autoloading
2019-01-06remove workarounds for Ruby < 2.3Dan Allen
- remove constants for differentiating between Ruby versions - remove fallback assignment for RUBY_ENGINE constant - remove rubygems require - use unicode character properties in regular expressions (e.g., \p{Word}) - remove COERCE_ENCODING constant - always set FORCE_ENCODING constant to true unless default external encoding is not UTF-8 - remove workaround for computing line length - use lines method instead of lines.entries to get lines for string - always normalize lines - check if JRuby class is defined instead of checking for JRuby engine - remove global RUBY_ENGINE_JRUBY constant - move RUBY_ENGINE_OPAL constant inside Asciidoctor module - remove magic encoding comments (since default script encoding is UTF-8) - remove workaround when printing encoding information - remove fallback assignments for passthrough escape characters - remove Ruby core backports (only leave Asciidoctor-specific extensions) - use __dir__ instead of File.dirname __FILE__ - use Float#truncate to truncate column widths - override Float#truncate on Ruby 2.3 to implement precision argument - remove concurrent/hash backport - simplify class_for_name helper - don't call to_sym on constants returned from constants method - remove unnecessary aliasing of regexp match variables; use magic variable instead (e.g., m = $~) - remove workaround for sub_specialchars to accomodate gsub with map argument - remove comment about %:z placeholder for strftime - don't call .to_a on return value of Hash#keys - get home directory using Dir.home - remove exceptions and exclusions for Ruby < 2 in test suite - update list of supported Ruby engines and versions in READMEs - update ruby versions in run-tests.sh
2018-09-11replace the use of render with convert in test suiteDan Allen
- rename render_string to convert_string - rename render_embedded_string to convert_string_to_embedded - rename render_inline_string to convert_inline_string - use convert_inline_string where :doctype was being set to :inline
2018-04-08purge render method from test suite (except to verify alias)Dan Allen
- replace use of render method with convert method
2017-05-28rename test helper method expand_entity to decode_charDan Allen
- rename expand_entity to decode_char - change pack 'U*' to pack 'U1' (since the method only accepts one number) - use decode_char in place of long-hand in some places
2015-12-29remove trailing endlines in sourceDan Allen
2014-10-20resolves #1090 assign title to preface nodeDan Allen
- assign title to preface node based on value of preface-title attribute
2014-08-07add line break opportunity (&#8203;) after emdash and ellipsesDan Allen
2014-02-05refactor unit tests so they work in RubyMineCharles Moulliard
- explicitly add the test and lib directory to the load path - switch to the project root before running tests - add UTF-8 encoding magic header to all test files - exclude .gem file at root of project (where RubyMine puts it) This commit was modified from the original pull request by @mojavelinux
2013-11-07resolves #768 emit warning if part is invalidDan Allen
- warn if part has intro content that doesn't have partintro style - warn if part has no sections - cleanup invalid multipart book examples in test suite
2013-11-06resolves #533 unwrap preamble if standaloneDan Allen
2013-06-09fix tests for testing slim and haml backendsDan Allen
- make tests more friendly for slim and haml backend testing - put span w/ role around smart quotes - add test that table w/ asciidoc content doesn't disable section numbering - move preamble toc test to preamble test suite
2013-01-03Add DocBook backend templates + loads of improvementsDan Allen
- make templates for docbook45 backend - move backend templates to backends/ folder - load backend templates lazily (based on backend attribute) - namespace backend templates to avoid conflicts - extend backend templates from a base template - add view property to template class - change InlineLink to InlineAnchor and assign type (:link or :xref) - simplify shorthand methods (e.g., define attribute) in template classes - set default backend to html5 - set backend attribute family (backend-*, basebackend, etc) - set docdate and doctime attributes (match local* w/o file ref) - prevent Reader from overriding attributes passed to Document.new - fix list continuation bug in outline and labeled lists - fold first paragraph properly in outline lists; document in TomDoc - add convenience methods to String (trim, nuke) - add TomDoc to methods added to String - add tests for String monkeypatches - fix compliance of attribute continuations in Reader - perform attribute substitutions on document attributes and attribute lists - apply normal subs to single-quoted attribute values - cleanup how substitutions are called - don't need Asciidoctor:: prefix in Substituter - honor line pass: macro in document attribute value - move regexs in Reader to Asciidoctor module - use %r{} syntax to make some regex easier to read - fix order of replacements - add ellipsis and single quote replacements - add space, quot and apos to instrinsics - move Substituters mixin to AbstractBlock - make Document an AbstractBlock - use blocks instance variable in Document instead of elements - document should store text of reference to match how docbook works - allow Document.new to be called w/ no arguments - rename level* regex to section* - loads of tests to verify numerous compliance checks and for new functionality - more TomDoc
2012-12-17support book doctype, streamline doc title accessorsDan Allen
- add doctype accessor to Document - support the book doctype (multiple level-0 headings) - polish and document logic for retrieving the document and header titles - subtitute attributes in section titles - tests for everything mentioned above
2012-12-13add handling of preamble contentDan Allen
- detect preamble content - add preamble to block with context :preamble - add dedicated template for preamble (as in AsciiDoc) - verify preamble is created only when between title and first section