test/basic_test.rb in htmldoc-0.2.1 vs test/basic_test.rb in htmldoc-0.2.2

- old
+ new

@@ -81,10 +81,13 @@ def test_get_command_pages # Those tests are not exhaustive, but should ensure a reasonable # level of functionality. pdf = PDF::HTMLDoc.new tempfile = Tempfile.new("htmldoc.test") - pages = ["http://example.org/", tempfile.path, "Test"] + pages = ["http://example.org/", tempfile.path] + tmpstring = "1234567890" + tmpstring += "1234567890" while File.exists?(tmpstring) + pages << tmpstring pages.each do |page| pdf << page end command_pages = pdf.send(:get_command_pages) pages[2] = pdf.instance_variable_get(:@tempfiles)[0].path