Skip to content

Commit

Permalink
Fixed docblock test
Browse files Browse the repository at this point in the history
  • Loading branch information
yumitsu committed Jan 10, 2012
1 parent a04f49c commit c4437bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_docblock_annotations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ def test_basics
end
def test_highlighted_in_blocks
r = Rocco.new( 'test', '', { :language => "c", :docblocks => true } ) { "" } # Generate throwaway instance so I can test `parse`
highlighted = r.highlight( r.split( r.parse( "/**\n * Comment\n * @param type name\n */\ndef codeblock\nend\n" ) ) )
highlighted = r.highlight( r.split( r.parse( "/**\n * Comment\n *\n * @param type name\n */\ndef codeblock\nend\n" ) ) )

assert_equal(
"<p>Comment</p>\n\n<blockquote><p><strong>param</strong> type name</p></blockquote>\n",
"<p>Comment</p>\n<blockquote>\n<p><strong>param</strong> type name </p>\n</blockquote>",
highlighted[0][0]
)
end
Expand Down

0 comments on commit c4437bb

Please sign in to comment.