From 38683a8cc244a1152b07ececbc31d7caffe70432 Mon Sep 17 00:00:00 2001 From: Mike West Date: Tue, 19 Oct 2010 13:08:13 +0200 Subject: [PATCH] Cleaning up tests after bugfix merges: As a result of fixing issue #15, a few tests broken. This commit brings the tests up to date with the latest behavior. --- test/rocco_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/rocco_test.rb b/test/rocco_test.rb index 7f79aef..ff86ed8 100644 --- a/test/rocco_test.rb +++ b/test/rocco_test.rb @@ -38,7 +38,7 @@ class RoccoBasicTests < Test::Unit::TestCase r = roccoize( "filename.rb", "# Comment 1\ndef codeblock\nend\n" ) assert_equal 1, r.sections.length assert_equal 2, r.sections[ 0 ].length - assert_equal "

Comment 1

\n", r.sections[ 0 ][ 0 ] + assert_equal "

Comment 1

\n", r.sections[ 0 ][ 0 ] assert_equal "def codeblock\nend", r.sections[ 0 ][ 1 ] end @@ -63,14 +63,14 @@ class RoccoBasicTests < Test::Unit::TestCase r = Rocco.new( 'test' ) { "" } # Generate throwaway instance so I can test `split` assert_equal( [ - [ " Comment 1" ], + [ "Comment 1" ], [ "def codeblock\nend" ] ], r.split([ [ [ "# Comment 1" ], [ "def codeblock", "end" ] ] ]) ) assert_equal( [ - [ " Comment 1", " Comment 2" ], + [ "Comment 1", "Comment 2" ], [ "def codeblock", "end" ] ], r.split( [ @@ -148,6 +148,6 @@ class RoccoIssueTests < Test::Unit::TestCase !r.sections[0][0].include?( "
" ), "`
` present in rendered documentation text. It should be a header, not text followed by a horizontal rule." ) - assert_equal( "

Comment 1

", r.sections[0][0] ) + assert_equal( "

Comment 1

\n", r.sections[0][0] ) end end