Fix endpoint URLs for Enterprise support

Since Enterprise base URLs end with /api/v3 we need to make sure
the endpoints are relative and not absolute.
This commit is contained in:
Haacked
2013-10-29 16:00:08 -07:00
parent 0d42e9ca8b
commit 1d64210ac5
21 changed files with 130 additions and 130 deletions
@@ -11,7 +11,7 @@ namespace Octokit.Tests.Clients
[Fact]
public void RequestsCorrectUrl()
{
var endpoint = new Uri("/notifications", UriKind.Relative);
var endpoint = new Uri("notifications", UriKind.Relative);
var connection = Substitute.For<IApiConnection>();
var client = new NotificationsClient(connection);
@@ -26,7 +26,7 @@ namespace Octokit.Tests.Clients
[Fact]
public void RequestsCorrectUrl()
{
var endpoint = new Uri("/repos/banana/split/notifications", UriKind.Relative);
var endpoint = new Uri("repos/banana/split/notifications", UriKind.Relative);
var connection = Substitute.For<IApiConnection>();
var client = new NotificationsClient(connection);