Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kenyonj committed Jun 14, 2024
1 parent 1d9e46d commit 73b709d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ Gemfile.lock
.project
.buildpath
*~
vendor/
5 changes: 5 additions & 0 deletions test/markup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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, <<message
#{File.basename expected_file}'s contents are not html equal to output:
#{diff}
Expand Down
5 changes: 2 additions & 3 deletions test/markups/README.rst.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ <h1>Header 1</h1>
<h2>Subtitle</h2>
<p>Example text.</p>
<div>
<p><a href="#top">Table of Contents</a></p>
<p>Table of Contents</p>
<ul>
<li><a href="#header-2">Header 2</a></li>
<li><a href="#field-list">Field list</a></li>
Expand Down Expand Up @@ -102,8 +102,7 @@ <h2><a href="#toc-entry-1">Header 2</a></h2>
</tr>
</tbody>
</table>
<a href="https://scan.coverity.com/projects/621">
<img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
<a href="https://scan.coverity.com/projects/621"><img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
</a>
<img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
<a name="field-list"></a>
Expand Down
2 changes: 1 addition & 1 deletion test/markups/README.toc.rst.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div>
<p><a href="#top">Contents</a></p>
<p>Contents</p>
<ul>
<li>
<a href="#introduction">1   Introduction</a><ul>
Expand Down

0 comments on commit 73b709d

Please sign in to comment.