Hello, I have problems with running the test suite. `ruby test` on master branch gives me ''283 tests, 1362 assertions, 4 failures, 49 errors''. Is it just because master is a development branch? Do you try to have tests aligned with the code? I have also 1 failure in REL_0.9.2: 1) Failure: test_set_encoding(TestPage) [./test/test_page.rb:29]: <"UTF-8"> expected but was <nil>. 274 tests, 1449 assertions, 1 failures, 0 errors I''m using nokogiri 1.2.3 and libxml2 2.6.32 (dfsg-4ubuntu1.1). Is mechanize designed for other version of these libs? Greetings, Wojciech
On Sat, Apr 18, 2009 at 6:55 AM, Wojciech Piekutowski <wojciech at piekutowski.net> wrote:> Hello, > > I have problems with running the test suite. `ruby test` on master > branch gives me ''283 tests, 1362 assertions, 4 failures, 49 errors''. > Is it just because master is a development branch? Do you try to have > tests aligned with the code? > > I have also 1 failure in REL_0.9.2: > > ?1) Failure: > test_set_encoding(TestPage) [./test/test_page.rb:29]: > <"UTF-8"> expected but was > <nil>. > > 274 tests, 1449 assertions, 1 failures, 0 errors > > I''m using nokogiri 1.2.3 and libxml2 2.6.32 (dfsg-4ubuntu1.1). Is > mechanize designed for other version of these libs?libxml2 version 2.6.32 has problems when it comes to encoding. If you upgrade libxml2 to the latest (2.7.3) you should be able to run the tests. -- Aaron Patterson http://tenderlovemaking.com/
On Sat, Apr 18, 2009 at 16:49, Aaron Patterson <aaron.patterson at gmail.com> wrote:> On Sat, Apr 18, 2009 at 6:55 AM, Wojciech Piekutowski > <wojciech at piekutowski.net> wrote: >> Hello, >> >> I have problems with running the test suite. `ruby test` on master >> branch gives me ''283 tests, 1362 assertions, 4 failures, 49 errors''. >> Is it just because master is a development branch? Do you try to have >> tests aligned with the code? >> >> I have also 1 failure in REL_0.9.2: >> >> ?1) Failure: >> test_set_encoding(TestPage) [./test/test_page.rb:29]: >> <"UTF-8"> expected but was >> <nil>. >> >> 274 tests, 1449 assertions, 1 failures, 0 errors >> >> I''m using nokogiri 1.2.3 and libxml2 2.6.32 (dfsg-4ubuntu1.1). Is >> mechanize designed for other version of these libs? > > libxml2 version 2.6.32 has problems when it comes to encoding. ?If you > upgrade libxml2 to the latest (2.7.3) you should be able to run the > tests.Thanks, now tests work fine. I''d be a good idea to add this libxml2 version requirement (or warning) to Mechanize or Nokogiri or maybe both. RMagick does a similar thing with the imagemagick lib - gem simply won''t compile without proper version of the lib. Greetings, Wojciech