Skip to content

Commit

Permalink
Updated teams client tests
Browse files Browse the repository at this point in the history
Updated tests to reflect the new expected url
  • Loading branch information
aneville committed Feb 2, 2015
1 parent 7e2d524 commit 0487dbf
Showing 1 changed file with 2 additions and 2 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

0 comments on commit 0487dbf

Please sign in to comment.