tweaking integration tests

This commit is contained in:
Brendan Forster
2016-07-23 16:36:23 -07:00
parent 5579c1f3fb
commit 2686ccecbe
2 changed files with 3 additions and 3 deletions
@@ -342,7 +342,7 @@ namespace Octokit.Tests.Integration.Clients
var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryId, _fixture.ExpectedHooks[1].Id, editRepositoryHook);
var expectedConfig = new Dictionary<string, string> { { "content_type", "json" }, { "url", "http://test.com/example" } };
Assert.Equal(new[] { "deployment", "pull_request" }.ToList(), actualHook.Events.ToList());
Assert.Equal(new[] { "push", "pull_request" }.ToList(), actualHook.Events.ToList());
Assert.Equal(expectedConfig.Keys, actualHook.Config.Keys);
Assert.Equal(expectedConfig.Values, actualHook.Config.Values);
}
@@ -378,7 +378,7 @@ namespace Octokit.Tests.Integration.Clients
var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryId, _fixture.ExpectedHooks[3].Id, editRepositoryHook);
var expectedConfig = new Dictionary<string, string> { { "project", "GEZDGORQFY2TCNZRGY2TSMBVGUYDK" } };
Assert.Equal(new[] { "deployment", "pull_request" }.ToList(), actualHook.Events.ToList());
Assert.Equal(new[] { "push", "pull_request" }.ToList(), actualHook.Events.ToList());
Assert.Equal(expectedConfig.Keys, actualHook.Config.Keys);
Assert.Equal(expectedConfig.Values, actualHook.Config.Values);
}
@@ -20,7 +20,7 @@ namespace Octokit.Tests.Integration.fixtures
CreateHook(_github, _repository, "awsopsworks", "push"),
CreateHook(_github, _repository, "activecollab", "push"),
CreateHook(_github, _repository, "acunote", "push"),
CreateHook(_github, _repository, "agilebench", "push")
CreateHook(_github, _repository, "agilezen", "push")
};
_hook = _hooks[0];
}