summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2013-08-13 16:31:06 -0600
committerDan Allen <dan.j.allen@gmail.com>2013-08-13 16:31:06 -0600
commit892fb9ef345069554e676c173c404ee2edceffbf (patch)
treefe92473eccbac0e2ffd64284179455d0a92a8e4c /test
parent2d82b3f6d8d447f81e940d0fa627e5e516a75c11 (diff)
resolves #556 print warning/error messages using warn
Diffstat (limited to 'test')
-rw-r--r--test/blocks_test.rb2
-rw-r--r--test/sections_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/blocks_test.rb b/test/blocks_test.rb
index b43e8b1d..50be6139 100644
--- a/test/blocks_test.rb
+++ b/test/blocks_test.rb
@@ -985,7 +985,7 @@ section paragraph
output, errors = nil
redirect_streams do |stdout, stderr|
output = render_string input
- errors = stdout.string
+ errors = stderr.string
end
assert_xpath '//*[@id="header"]/*', output, 0
assert_xpath '//*[@id="preamble"]/*', output, 0
diff --git a/test/sections_test.rb b/test/sections_test.rb
index d076c02f..5c0a159d 100644
--- a/test/sections_test.rb
+++ b/test/sections_test.rb
@@ -426,7 +426,7 @@ text in standalone
output, errors = nil
redirect_streams do |stdout, stderr|
output = render_string input
- errors = stdout.string
+ errors = stderr.string
end
assert !errors.empty?