From f0ea90bb5f0fbe3da34fa81b520c5d770ee9e308 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 15 Nov 2013 08:19:40 +1100 Subject: [PATCH] fix gist test and remove some whitespace --- Octokit.Tests.Integration/GistsClientTests.cs | 1 - Octokit.Tests/Clients/GistsClientTests.cs | 5 +---- Octokit/Clients/GistsClient.cs | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Octokit.Tests.Integration/GistsClientTests.cs b/Octokit.Tests.Integration/GistsClientTests.cs index 855e6c58..124ee8cc 100644 --- a/Octokit.Tests.Integration/GistsClientTests.cs +++ b/Octokit.Tests.Integration/GistsClientTests.cs @@ -27,6 +27,5 @@ namespace Octokit.Tests.Integration var retrieved = await this._gistsClient.Get(6305249); Assert.NotNull(retrieved); } - } } \ No newline at end of file diff --git a/Octokit.Tests/Clients/GistsClientTests.cs b/Octokit.Tests/Clients/GistsClientTests.cs index bd7b5f95..e2b025ba 100644 --- a/Octokit.Tests/Clients/GistsClientTests.cs +++ b/Octokit.Tests/Clients/GistsClientTests.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; using NSubstitute; using Octokit; using Xunit; @@ -9,7 +7,6 @@ public class GistsClientTests { public class TheGetMethod { - [Fact] public void RequestsCorrectUrl() { @@ -18,7 +15,7 @@ public class GistsClientTests client.Get(1); - connection.Received().Get(Arg.Is(u => u.ToString() == "repos/owner/repo/git/commits/reference"), null); + connection.Received().Get(Arg.Is(u => u.ToString() == "gists/1"), null); } } diff --git a/Octokit/Clients/GistsClient.cs b/Octokit/Clients/GistsClient.cs index dc3a5099..19e4a7ec 100644 --- a/Octokit/Clients/GistsClient.cs +++ b/Octokit/Clients/GistsClient.cs @@ -20,7 +20,5 @@ namespace Octokit { return ApiConnection.Get(ApiUrls.Gist(id)); } - - } } \ No newline at end of file