From 73b709d8f6eec6dd3773adffc7d82e9b10bafdaf Mon Sep 17 00:00:00 2001 From: Justin Kenyon Date: Fri, 14 Jun 2024 10:58:30 -0400 Subject: [PATCH] updates --- .gitignore | 1 - test/markup_test.rb | 5 +++++ test/markups/README.rst.html | 5 ++--- test/markups/README.toc.rst.html | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index c93c0b18..81c37345 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,3 @@ Gemfile.lock .project .buildpath *~ -vendor/ diff --git a/test/markup_test.rb b/test/markup_test.rb index 24e78000..6a2a8bc6 100644 --- a/test/markup_test.rb +++ b/test/markup_test.rb @@ -66,6 +66,11 @@ def call f.close_write f.read end + + if ENV['UPDATE'] + File.open(expected_file, 'w') { |f| f.write actual } + end + assert_html_equal expected, actual, <Header 1

Subtitle

Example text.

-

Table of Contents

+

Table of Contents

  • Header 2
  • Field list
  • @@ -102,8 +102,7 @@

    Header 2

    - -Coverity Scan Build Status +Coverity Scan Build Status Coverity Scan Build Status diff --git a/test/markups/README.toc.rst.html b/test/markups/README.toc.rst.html index c5b3ecbb..06c31ee8 100644 --- a/test/markups/README.toc.rst.html +++ b/test/markups/README.toc.rst.html @@ -1,5 +1,5 @@
    -

    Contents

    +

    Contents