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