Skip to content

Commit 161c986

Browse files
committed
fix test server/controller/user/favorite
1 parent 669630f commit 161c986

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

t/server/controller/user/favorite.t

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,33 @@ test_psgi app, sub {
1212
is( $user->code, 200, 'code 200' );
1313
$user = decode_json_ok($user);
1414

15+
is_deeply(
16+
$user->{identity},
17+
[
18+
{
19+
'key' => 'MO',
20+
'name' => 'pause'
21+
}
22+
],
23+
'got correct identity'
24+
);
25+
26+
is_deeply(
27+
$user->{access_token},
28+
[
29+
{
30+
'client' => 'testing',
31+
'token' => 'testing'
32+
}
33+
],
34+
'got correct access_token'
35+
);
36+
1537
ok(
1638
my $res = $cb->(
1739
POST '/user/favorite?access_token=testing',
18-
Content => encode_json(
40+
Content_Type => 'application/json',
41+
Content => encode_json(
1942
{
2043
distribution => 'Moose',
2144
release => 'Moose-1.10',

0 commit comments

Comments
 (0)