@@ -38,7 +38,7 @@ func TestAPIOrgCreate(t *testing.T) {
3838 var apiOrg api.Organization
3939 DecodeJSON (t , resp , & apiOrg )
4040
41- assert .Equal (t , org .UserName , apiOrg .UserName )
41+ assert .Equal (t , org .UserName , apiOrg .Name )
4242 assert .Equal (t , org .FullName , apiOrg .FullName )
4343 assert .Equal (t , org .Description , apiOrg .Description )
4444 assert .Equal (t , org .Website , apiOrg .Website )
@@ -54,7 +54,7 @@ func TestAPIOrgCreate(t *testing.T) {
5454 req = NewRequestf (t , "GET" , "/api/v1/orgs/%s?token=%s" , org .UserName , token )
5555 resp = MakeRequest (t , req , http .StatusOK )
5656 DecodeJSON (t , resp , & apiOrg )
57- assert .EqualValues (t , org .UserName , apiOrg .UserName )
57+ assert .EqualValues (t , org .UserName , apiOrg .Name )
5858
5959 req = NewRequestf (t , "GET" , "/api/v1/orgs/%s/repos?token=%s" , org .UserName , token )
6060 resp = MakeRequest (t , req , http .StatusOK )
@@ -94,7 +94,7 @@ func TestAPIOrgEdit(t *testing.T) {
9494 var apiOrg api.Organization
9595 DecodeJSON (t , resp , & apiOrg )
9696
97- assert .Equal (t , "user3" , apiOrg .UserName )
97+ assert .Equal (t , "user3" , apiOrg .Name )
9898 assert .Equal (t , org .FullName , apiOrg .FullName )
9999 assert .Equal (t , org .Description , apiOrg .Description )
100100 assert .Equal (t , org .Website , apiOrg .Website )
0 commit comments