Permalink
Browse files

test an actual field, not the id

  • Loading branch information...
1 parent 5fdf911 commit 7c124401620d7795bda25211fcd8cc00c0fac95a @monken committed Apr 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/es/fields.t
View
@@ -15,8 +15,8 @@ ok( $twitter->refresh->put(
'Put mo ok'
);
-ok( my $user = $twitter->query_type('scan')->fields( ['nickname'] )->first, 'get name field' );
+ok( my $user = $twitter->query_type('scan')->fields( ['name'] )->first, 'get name field' );
-is($user->nickname, 'mo', 'got field ok');
+is($user->name, 'Moritz Onken', 'got field ok');
done_testing;

0 comments on commit 7c12440

Please sign in to comment.