@@ -56,16 +56,19 @@ describe('project.test.js', function () {
56
56
57
57
} ) ;
58
58
59
- describe . skip ( 'client.projects.getByPath()' , function ( ) {
59
+ describe ( 'client.projects.getByPath()' , function ( ) {
60
60
it ( 'should return a project by path' , function ( done ) {
61
61
client . projects . getByPath ( { path : 'fengmk2/node-gitlab-test' } , function ( err , project ) {
62
62
should . not . exists ( err ) ;
63
- project . id . should . equal ( 1040 ) ;
64
- // project.should.have.keys('created_at', 'default_branch', 'description', 'id',
65
- // 'issues_enabled', 'merge_requests_enabled', 'name', 'namespace_id',
66
- // 'creator_id', 'snippets_enabled', 'public',
67
- // 'issues_tracker_id', 'issues_tracker', 'last_activity_at',
68
- // 'path', 'private_flag', 'updated_at', 'wall_enabled', 'wiki_enabled');
63
+ project . path_with_namespace . should . equal ( 'fengmk2/gitlab' ) ;
64
+ project . should . have . keys ( 'id' , 'name' , 'description' , 'default_branch' ,
65
+ 'owner' ,
66
+ 'ssh_url_to_repo' , 'http_url_to_repo' ,
67
+ 'web_url' ,
68
+ 'public' , 'path' , 'path_with_namespace' , 'name_with_namespace' , 'namespace' ,
69
+ 'issues_enabled' , 'merge_requests_enabled' ,
70
+ 'wiki_enabled' , 'created_at' , 'last_activity_at' ,
71
+ 'archived' , 'visibility_level' , 'snippets_enabled' ) ;
69
72
done ( ) ;
70
73
} ) ;
71
74
} ) ;
0 commit comments