diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2019-03-14 23:55:19 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-14 23:55:19 -0600 |
| commit | 2fc6d228248a5dbec486b798efb5102013f67b27 (patch) | |
| tree | eecaeee0a12b25a33f39e924dd84d3576e20c806 /test/reader_test.rb | |
| parent | 94c28f2383c2cb860cd0d4ec9fb459f1a058e835 (diff) | |
resolves #1444 rename header_footer option to standalone (PR #3146)
* still honor header_footer option as fallback for backwards compatibility
Diffstat (limited to 'test/reader_test.rb')
| -rw-r--r-- | test/reader_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/reader_test.rb b/test/reader_test.rb index 84760ee2..c30c9fa0 100644 --- a/test/reader_test.rb +++ b/test/reader_test.rb @@ -606,7 +606,7 @@ class ReaderTest < Minitest::Test test 'include directive is enabled when safe mode is less than SECURE' do input = 'include::fixtures/include-file.adoc[]' - doc = document_from_string input, safe: :safe, header_footer: false, base_dir: DIRNAME + doc = document_from_string input, safe: :safe, standalone: false, base_dir: DIRNAME output = doc.convert assert_match(/included content/, output) assert doc.catalog[:includes]['fixtures/include-file'] @@ -619,7 +619,7 @@ class ReaderTest < Minitest::Test ---- EOS - doc = document_from_string input, safe: :safe, header_footer: false, base_dir: DIRNAME + doc = document_from_string input, safe: :safe, standalone: false, base_dir: DIRNAME assert doc.catalog[:includes].empty? end @@ -629,7 +629,7 @@ class ReaderTest < Minitest::Test include_file_with_sp = File.join DIRNAME, 'fixtures', 'include file.adoc' begin FileUtils.cp include_file, include_file_with_sp - doc = document_from_string input, safe: :safe, header_footer: false, base_dir: DIRNAME + doc = document_from_string input, safe: :safe, standalone: false, base_dir: DIRNAME output = doc.convert assert_match(/included content/, output) ensure @@ -643,7 +643,7 @@ class ReaderTest < Minitest::Test include_file_with_sp = File.join DIRNAME, 'fixtures', 'include file.adoc' begin FileUtils.cp include_file, include_file_with_sp - doc = document_from_string input, safe: :safe, header_footer: false, base_dir: DIRNAME + doc = document_from_string input, safe: :safe, standalone: false, base_dir: DIRNAME output = doc.convert assert_match(/included content/, output) ensure |
