diff options
Diffstat (limited to 'jni/ruby/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb')
-rw-r--r-- | jni/ruby/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/jni/ruby/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb b/jni/ruby/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb new file mode 100644 index 0000000..148edb1 --- /dev/null +++ b/jni/ruby/test/rdoc/test_rdoc_markup_to_joined_paragraph.rb @@ -0,0 +1,32 @@ +require 'rdoc/test_case' + +class TestRDocMarkupToJoinedParagraph < RDoc::TestCase + + def setup + super + + @to = RDoc::Markup::ToJoinedParagraph.new + end + + def test_accept_paragraph + parsed = para('hello', ' ', 'world') + + @to.accept_paragraph parsed + + expected = para('hello world') + + assert_equal expected, parsed + end + + def test_accept_paragraph_break + parsed = para('hello', ' ', 'world', hard_break, 'everyone') + + @to.accept_paragraph parsed + + expected = para('hello world', hard_break, 'everyone') + + assert_equal expected, parsed + end + +end + |