On 10-okt-2005, at 15:12, Lars Francke wrote:
> Hi,
>
> i''m currently looking into a problem with the tests for
ActionPack.
> 127 of them are failing on my windows machine. On Linux everything
> is working fine so far. I just wasted a good part of an hour trying
> to find the problem on windows...the solution is: Nitro and not
> Windows.
>
> I''m using Edge Rails and have no rails gem installed. On Windows I
> have the Nitro/Glue/Og gems installed but not on Linux. The problem
> is, that the document.rb from EdgeRails is required (I verified
> that) but document itself requires "html/node" and that seems to
> require an old version of node which is included in glue. In this
> older version "childless?" takes no argument:
>
> test_assert_tag_and_url_for(ActionPackAssertionsControllerTest):
> ArgumentError: wrong number of arguments (1 for 0) ./test/
> controller/../../lib/action_controller/vendor/html-scanner/html/
> document.rb:41:in `childless?'' ./test/controller/../../lib/
> action_controller/vendor/html-scanner/html/document.rb:41:in
> `initialize''
> ./test/controller/../../lib/action_controller/test_process.rb:
> 353:in `new''
> ./test/controller/../../lib/action_controller/test_process.rb:
> 353:in `html_document''
> ./test/controller/../../lib/action_controller/test_process.rb:
> 357:in `find_tag''
> ./test/controller/../../lib/action_controller/assertions.rb:242:in
> `assert_tag''
> ./test/controller/action_pack_assertions_test.rb:118:in
> `test_assert_tag_and_url_for''
>
> I''m struggling with "require" as I''m not sure
how it works (with
> RubyGems installed and loaded). So is there an easy way to force
> the html-scanner from my Edge Rails to load the node.rb in its own
> directory instead of glue''s old version?
You have to mess with the load paths a little - this is option 1, and
option 2 - just "load" the files you need so that they override what
Glue gives you. Conflicts with Glue are a long-standing Trac ticket.
--
Julian "Julik" Tarkhanov