diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2015-10-25 02:01:32 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2015-10-25 02:01:32 -0600 |
| commit | 1bbdfe1bdf5c87b032e257dca9a7a2d5c29a7f98 (patch) | |
| tree | c9974e14c56a5eaa684a32bbac57a083bdbfb702 /test/paragraphs_test.rb | |
| parent | 4f323c762a2cf96f66d00d05c25018266e6811eb (diff) | |
resolves #1544 built-in writer should not fail if output is nil
- don't fail if output is nil
- don't output trailing endline if output is empty
- inline doctype should return nil if there's nothing to convert
Diffstat (limited to 'test/paragraphs_test.rb')
| -rw-r--r-- | test/paragraphs_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/paragraphs_test.rb b/test/paragraphs_test.rb index 2e2a8be4..4a3b0402 100644 --- a/test/paragraphs_test.rb +++ b/test/paragraphs_test.rb @@ -514,10 +514,10 @@ Wise words from a wise person. assert_equal '<a href="http://asciidoc.org">AsciiDoc</a> is a <em>lightweight</em> markup language…​', output end - test 'should output empty string if first block is not a paragraph' do + test 'should output nil if first block is not a paragraph' do input = '* bullet' output = render_string input, :doctype => 'inline' - assert output.empty? + assert output.nil? end end end |
