From 8ca8227ba08dfdfbe3e25a609588771689df23e0 Mon Sep 17 00:00:00 2001 From: Prayank Mathur Date: Thu, 7 Apr 2016 12:59:00 +0530 Subject: [PATCH] Fixes --- .../Clients/RepositoryPagesClientTests.cs | 19 +++++++++++++++++++ .../Octokit.Tests.Integration.csproj | 2 +- ...servableRepositoryDeployKeysClientTests.cs | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/RepositoryPagesClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoryPagesClientTests.cs index 1e5a6062..42137555 100644 --- a/Octokit.Tests.Integration/Clients/RepositoryPagesClientTests.cs +++ b/Octokit.Tests.Integration/Clients/RepositoryPagesClientTests.cs @@ -96,5 +96,24 @@ public class RepositoryPagesClientTests Assert.NotEqual(firstPage[3].Url, secondPage[3].Url); Assert.NotEqual(firstPage[4].Url, secondPage[4].Url); } + + public class TheGetLatestMethod + { + readonly IRepositoryPagesClient _repositoryPagesClient; + const string owner = "octokit"; + const string name = "octokit.net"; + + public TheGetLatestMethod() + { + _repositoryPagesClient = Helper.GetAuthenticatedClient().Repository.Page; + } + + public async Task ReturnsMetadata() + { + var data = _repositoryPagesClient.GetLatest(owner, name); + + Assert.NotNull(data.Id); + } + } } } \ No newline at end of file diff --git a/Octokit.Tests.Integration/Octokit.Tests.Integration.csproj b/Octokit.Tests.Integration/Octokit.Tests.Integration.csproj index a92378cc..6c775ab3 100644 --- a/Octokit.Tests.Integration/Octokit.Tests.Integration.csproj +++ b/Octokit.Tests.Integration/Octokit.Tests.Integration.csproj @@ -150,8 +150,8 @@ + - diff --git a/Octokit.Tests.Integration/Reactive/ObservableRepositoryDeployKeysClientTests.cs b/Octokit.Tests.Integration/Reactive/ObservableRepositoryDeployKeysClientTests.cs index 3df43c17..bbcf8ef5 100644 --- a/Octokit.Tests.Integration/Reactive/ObservableRepositoryDeployKeysClientTests.cs +++ b/Octokit.Tests.Integration/Reactive/ObservableRepositoryDeployKeysClientTests.cs @@ -103,4 +103,4 @@ public class ObservableRepositoryDeployKeysClientTests : IDisposable { Helper.DeleteRepo(_repository); } -} +} \ No newline at end of file