diff --git a/Octokit.Tests/Clients/TeamsClientTests.cs b/Octokit.Tests/Clients/TeamsClientTests.cs index dfc65b51d5..3649592d1b 100644 --- a/Octokit.Tests/Clients/TeamsClientTests.cs +++ b/Octokit.Tests/Clients/TeamsClientTests.cs @@ -152,7 +152,7 @@ public void RequestsTheCorrectUrl() client.AddMember(1, "user"); - connection.Received().Put(Arg.Is(u => u.ToString() == "teams/1/members/user")); + connection.Received().Put(Arg.Is(u => u.ToString() == "teams/1/memberships/user")); } } @@ -165,7 +165,7 @@ public void RequestsTheCorrectUrl() var client = new TeamsClient(connection); client.RemoveMember(1, "user"); - connection.Received().Delete(Arg.Is(u => u.ToString() == "teams/1/members/user")); + connection.Received().Delete(Arg.Is(u => u.ToString() == "teams/1/memberships/user")); } } diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index 51c5666105..41c14d6ba6 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -1084,7 +1084,7 @@ public static Uri Teams(int id) /// The user login. public static Uri TeamMember(int id, string login) { - return "teams/{0}/members/{1}".FormatUri(id, login); + return "teams/{0}/memberships/{1}".FormatUri(id, login); } ///