@@ -38,7 +38,7 @@ func TestAPIOrgCreate(t *testing.T) {
38
38
var apiOrg api.Organization
39
39
DecodeJSON (t , resp , & apiOrg )
40
40
41
- assert .Equal (t , org .UserName , apiOrg .UserName )
41
+ assert .Equal (t , org .UserName , apiOrg .Name )
42
42
assert .Equal (t , org .FullName , apiOrg .FullName )
43
43
assert .Equal (t , org .Description , apiOrg .Description )
44
44
assert .Equal (t , org .Website , apiOrg .Website )
@@ -54,7 +54,7 @@ func TestAPIOrgCreate(t *testing.T) {
54
54
req = NewRequestf (t , "GET" , "/api/v1/orgs/%s?token=%s" , org .UserName , token )
55
55
resp = MakeRequest (t , req , http .StatusOK )
56
56
DecodeJSON (t , resp , & apiOrg )
57
- assert .EqualValues (t , org .UserName , apiOrg .UserName )
57
+ assert .EqualValues (t , org .UserName , apiOrg .Name )
58
58
59
59
req = NewRequestf (t , "GET" , "/api/v1/orgs/%s/repos?token=%s" , org .UserName , token )
60
60
resp = MakeRequest (t , req , http .StatusOK )
@@ -94,7 +94,7 @@ func TestAPIOrgEdit(t *testing.T) {
94
94
var apiOrg api.Organization
95
95
DecodeJSON (t , resp , & apiOrg )
96
96
97
- assert .Equal (t , "user3" , apiOrg .UserName )
97
+ assert .Equal (t , "user3" , apiOrg .Name )
98
98
assert .Equal (t , org .FullName , apiOrg .FullName )
99
99
assert .Equal (t , org .Description , apiOrg .Description )
100
100
assert .Equal (t , org .Website , apiOrg .Website )
0 commit comments