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?( "