From c209e2a3d097ee0405b444e6fae7a762e974ba72 Mon Sep 17 00:00:00 2001 From: Amy Palamountain Date: Sun, 2 Feb 2014 14:26:56 +1300 Subject: [PATCH] Integration test for hourly commits --- .../Clients/StatisticsClientTests.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Octokit.Tests.Integration/Clients/StatisticsClientTests.cs b/Octokit.Tests.Integration/Clients/StatisticsClientTests.cs index ba252ce1..4b1f7357 100644 --- a/Octokit.Tests.Integration/Clients/StatisticsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/StatisticsClientTests.cs @@ -72,6 +72,15 @@ namespace Octokit.Tests.Integration.Clients Assert.NotNull(weeklyCommitCounts.Owner); } + [IntegrationTest] + public async Task CanGetCommitPerHourPerDay() + { + var repository = await CreateRepository(); + await CommitToRepository(repository); + var hourlyCommits = await _client.Statistics.GetCommitPerHour(repository.Owner, repository.Name); + Assert.NotNull(hourlyCommits); + } + async Task CreateRepository() { var repoName = Helper.MakeNameWithTimestamp("public-repo");