Subject: | put_ok failed if second argument is used |
put_ok is broken : accoding to documentation, put_ok should accept
similar options as WWW::Mechanize's put, but as a hash reference.
So the following should succeed :
$mech->post_ok( $url, { content => 'foo' }, $description);
In Test::WWW::Mechanize, line 366 :
$self->put( $url, \%opts );
should be :
$self->put( $url, %opts );
( According to WW::Mechanize, the put syntaxe is :
$mech->put( $uri, content => $content );