X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frpc%2Fitem.t;h=12eb5bbda76c34948ad3d3e613f7761cb1f5f41d;hb=1513365d90fd22c305d8408ace1b971e6991114b;hp=c84f2e4e2db482d6d8a1bdb55760176d1b24b09f;hpb=0b0bf9111127c9fdad1e456169ec4cdd15b160f9;p=catagits%2FCatalyst-Controller-DBIC-API.git diff --git a/t/rpc/item.t b/t/rpc/item.t index c84f2e4..12eb5bb 100644 --- a/t/rpc/item.t +++ b/t/rpc/item.t @@ -1,5 +1,3 @@ -use 5.6.0; - use strict; use warnings; @@ -24,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 = @@ -40,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 );