X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=t%2Frpc%2Fitem.t;fp=t%2Frpc%2Fitem.t;h=12eb5bbda76c34948ad3d3e613f7761cb1f5f41d;hp=b322956bde25484ccffca3aeb1aa4531b57d18da;hb=7dccc5deaababe588c4840eede41edd4b9d33bd6;hpb=8eb64464221fb3be46a80278281fd66253bdf5e3 diff --git a/t/rpc/item.t b/t/rpc/item.t index b322956..12eb5bb 100644 --- a/t/rpc/item.t +++ b/t/rpc/item.t @@ -22,8 +22,7 @@ my $artist_view_url = "$base/api/rpc/artist/id/"; { my $id = 1; - my $req = - GET( $artist_view_url . $id, undef, 'Accept' => 'application/json' ); + my $req = GET( $artist_view_url . $id, 'Accept' => 'application/json' ); $mech->request($req); cmp_ok( $mech->status, '==', 200, 'open attempt okay' ); my %expected_response = @@ -38,8 +37,7 @@ my $artist_view_url = "$base/api/rpc/artist/id/"; { my $id = 5; - my $req = - GET( $artist_view_url . $id, undef, 'Accept' => 'application/json' ); + my $req = GET( $artist_view_url . $id, 'Accept' => 'application/json' ); $mech->request($req); cmp_ok( $mech->status, '==', 400, 'open attempt not ok' ); my $response = $json->decode( $mech->content );