Skip to content

Commit

Permalink
Merge pull request #695 from aneville/team-member-fix
Browse files Browse the repository at this point in the history
Fixed Team Member Endpoint
  • Loading branch information
haacked committed Feb 2, 2015
2 parents 6abcd77 + 0487dbf commit 935be43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Octokit.Tests/Clients/TeamsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void RequestsTheCorrectUrl()

client.AddMember(1, "user");

connection.Received().Put(Arg.Is<Uri>(u => u.ToString() == "teams/1/members/user"));
connection.Received().Put(Arg.Is<Uri>(u => u.ToString() == "teams/1/memberships/user"));
}
}

Expand All @@ -165,7 +165,7 @@ public void RequestsTheCorrectUrl()
var client = new TeamsClient(connection);
client.RemoveMember(1, "user");

connection.Received().Delete(Arg.Is<Uri>(u => u.ToString() == "teams/1/members/user"));
connection.Received().Delete(Arg.Is<Uri>(u => u.ToString() == "teams/1/memberships/user"));
}
}

Expand Down
2 changes: 1 addition & 1 deletion Octokit/Helpers/ApiUrls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ public static Uri Teams(int id)
/// <param name="login">The user login.</param>
public static Uri TeamMember(int id, string login)
{
return "teams/{0}/members/{1}".FormatUri(id, login);
return "teams/{0}/memberships/{1}".FormatUri(id, login);
}

/// <summary>
Expand Down

0 comments on commit 935be43

Please sign in to comment.