summaryrefslogtreecommitdiff
path: root/test/reader_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2013-03-01 15:08:27 +0100
committerDan Allen <dan.j.allen@gmail.com>2013-03-01 15:12:29 +0100
commit8a2bdd548213f89b84f49dafe008b80dd5df7cdc (patch)
treeafb57f9b9390deb10f66f33dd7b258bcad17251b /test/reader_test.rb
parentb5cda7dbb120625e9979c03919aacd1632c4d3de (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.rb5
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