[Catalyst] Mojomojo installation

Ash Berlin ash_cpan at firemirror.com
Mon Sep 17 22:41:15 GMT 2007

Bernhard Graf wrote:
> Hi all,
> I wanted to check out latest Mojomojo from CPAN, but got several 
> failures in the installation:

> - t/c/page_edit.t fails test #4 and #6 because the order of the expected
>   HTML attributes is not the same (expects 
>     <input\s+value=""\s+name="parent"\s+type="hidden"\s+/> 
>   but gets
>     <input type="hidden" name="parent" value="" /> )

That is the very reason why i wrote WWW::Mechanize::TreeBuilder:

>From the synopsis (altered to show specific example as above):

 use Test::More tests => 2;
 use Test::WWW::Mechanize::Catalyst 'MyApp';

 my $mech = Test::WWW::Mechanize::Catalyst->new;

 ok( $mech->look_down(
       _tag => 'input',
       name => 'parent',
       type => 'hidden',
       value => '' ), 'Found expected tag.' );

More information about the Catalyst mailing list