We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 669630f commit 161c986Copy full SHA for 161c986
t/server/controller/user/favorite.t
@@ -12,10 +12,33 @@ test_psgi app, sub {
12
is( $user->code, 200, 'code 200' );
13
$user = decode_json_ok($user);
14
15
+ is_deeply(
16
+ $user->{identity},
17
+ [
18
+ {
19
+ 'key' => 'MO',
20
+ 'name' => 'pause'
21
+ }
22
+ ],
23
+ 'got correct identity'
24
+ );
25
+
26
27
+ $user->{access_token},
28
29
30
+ 'client' => 'testing',
31
+ 'token' => 'testing'
32
33
34
+ 'got correct access_token'
35
36
37
ok(
38
my $res = $cb->(
39
POST '/user/favorite?access_token=testing',
- Content => encode_json(
40
+ Content_Type => 'application/json',
41
+ Content => encode_json(
42
{
43
distribution => 'Moose',
44
release => 'Moose-1.10',
0 commit comments