added one integration test

This commit is contained in:
aedampir@gmail.com
2016-06-09 18:38:17 +07:00
parent a6ce00ad6a
commit 03bf754e10
@@ -10,6 +10,7 @@ public class RepositoryPagesClientTests
readonly IRepositoryPagesClient _repositoryPagesClient;
const string owner = "octokit";
const string name = "octokit.net";
const int repositoryId = 7528679;
public TheGetMethod()
{
@@ -23,5 +24,12 @@ public class RepositoryPagesClientTests
var data = await _repositoryPagesClient.Get(owner, name);
Assert.Equal("https://api.github.com/repos/octokit/octokit.net/pages", data.Url);
}
[IntegrationTest(Skip= "These tests require repository admin rights - see https://github.com/octokit/octokit.net/issues/1263 for discussion")]
public async Task ReturnsMetadataWithRepositoryId()
{
var data = await _repositoryPagesClient.Get(repositoryId);
Assert.Equal("https://api.github.com/repos/octokit/octokit.net/pages", data.Url);
}
}
}