ok my $get_landing = run_request(GET => 'http://localhost/' ),
'got landing';
-cmp_ok $get_landing->code, '==', 200,
+cmp_ok $get_landing->code, '==', 200,
'200 on GET';
no strict 'refs';
ok my $get_users = run_request(GET => 'http://localhost/user'),
'got user';
-cmp_ok $get_users->code, '==', 200,
+cmp_ok $get_users->code, '==', 200,
'200 on GET';
{
ok my $get_user = run_request(GET => 'http://localhost/user/42'),
'got user';
-cmp_ok $get_user->code, '==', 200,
+cmp_ok $get_user->code, '==', 200,
'200 on GET';
{
ok my $post_user = run_request(POST => 'http://localhost/user/42', [id => '99'] ),
'post user';
-cmp_ok $post_user->code, '==', 200,
+cmp_ok $post_user->code, '==', 200,
'200 on POST';
{
is $params->{id}, 99, 'got expected value for id';
is ref($env), 'HASH', 'Got hashref';
}
-