See this example <http://mojolicious.org/perldoc/Test/Mojo#success> in
Test::Mojo.

On Fri, Jul 7, 2017 at 11:57 AM, <[email protected]> wrote:

> Hi,
>
> Can please someone say me how to check a content_like, in a mojolicious
> test script, if a redirects occurs ?
>
> $t = $t->post_ok('/engre' => {Accept => '*/*'} => form => {a => '0.25', z
> => '10'})->status_is(302)->content_like(qr/principale/);
>
> does not work.
>
> Thanks & best regards,
>
> Amka
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to