diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-03-01 15:08:27 +0100 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-03-01 15:12:29 +0100 |
| commit | 8a2bdd548213f89b84f49dafe008b80dd5df7cdc (patch) | |
| tree | afb57f9b9390deb10f66f33dd7b258bcad17251b /test/reader_test.rb | |
| parent | b5cda7dbb120625e9979c03919aacd1632c4d3de (diff) | |
turn include into a link to source file in secure mode
Diffstat (limited to 'test/reader_test.rb')
| -rw-r--r-- | test/reader_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/reader_test.rb b/test/reader_test.rb index 52ff8a81..b7670553 100644 --- a/test/reader_test.rb +++ b/test/reader_test.rb @@ -153,13 +153,14 @@ This is a paragraph outside the block. end context 'Include Macro' do - test 'include macro is disabled by default' do + test 'include macro is disabled by default and becomes a link' do input = <<-EOS include::include-file.asciidoc[] EOS para = block_from_string input, :attributes => { 'include-depth' => 0 } assert_equal 1, para.buffer.size - assert_equal 'include::include-file.asciidoc[]', para.buffer.join + #assert_equal 'include::include-file.asciidoc[]', para.buffer.join + assert_equal 'link:include-file.asciidoc[include-file.asciidoc]', para.buffer.join end test 'include macro is enabled when safe mode is less than SECURE' do |
