Revision history for Catalyst-Controller-DBIC-API: {{ $dist->version }}
{{ $NEXT }}
+- Fixed test failures in t/[rest,rpc]/item.t on newer HTTP::Message versions
2.004003 2011-12-19 14:41:59 Europe/Vienna
- Fixed test failure in generic.t with Moose > 2.02
{
my $id = 1;
my $req =
- GET( $artist_view_url . $id, undef, 'Accept' => 'application/json' );
+ GET( $artist_view_url . $id, 'Accept' => 'application/json' );
$mech->request($req);
cmp_ok( $mech->status, '==', 200, 'open attempt okay' );
my %expected_response =
{
my $id = 5;
my $req =
- GET( $artist_view_url . $id, undef, 'Accept' => 'application/json' );
+ 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 );
{
my $id = 9;
my $req =
- GET( $track_view_url . $id, undef, 'Accept' => 'application/json' );
+ GET( $track_view_url . $id, 'Accept' => 'application/json' );
$mech->request($req);
cmp_ok( $mech->status, '==', 200, 'got track with datetime object okay' );
my %expected_response =
{
my $req =
- GET( $artist_view_url . 'action_with_error', undef, 'Accept' => 'application/json' );
+ GET( $artist_view_url . 'action_with_error', 'Accept' => 'application/json' );
$mech->request($req);
cmp_ok( $mech->status, '==', 404, 'action returned error 404' );
my $response = $json->decode( $mech->content );
{
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 =
{
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 );