Permalink
Browse files

trying to expose rexml formatter bug that often breaks Rcov with Ruby…

… 1.8.6
  • Loading branch information...
1 parent 5911b75 commit b4084eb0bc1c2e7ec5f3a3ae8e2ec0456bc2cc05 @rsanheim rsanheim committed Feb 12, 2009
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/rexml_test.rb
View
@@ -0,0 +1,11 @@
+require File.dirname(__FILE__) + '/test_helper'
+require 'rexml/document'
+require 'rexml/formatters/pretty'
+
+class TestRexml < Test::Unit::TestCase
+ def test_bug_with_long_lines_without_spaces
+ pretty_formatter = ::REXML::Formatters::Pretty.new
+ long_string = "this-is-a-long-string-without-any-spaces-to-try-to-break-rexml-formatter"
+ pretty_formatter.send(:wrap, long_string, 100)
+ end
+end

0 comments on commit b4084eb

Please sign in to comment.