From 2686ccecbe6456d5b2730e90147dc91d08f34d29 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sat, 23 Jul 2016 16:36:23 -0700 Subject: [PATCH] tweaking integration tests --- .../Clients/RepositoryHooksClientTests.cs | 4 ++-- .../fixtures/RepositoriesHooksFixture.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs index 6b0937ca81..a4c8404756 100644 --- a/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs +++ b/Octokit.Tests.Integration/Clients/RepositoryHooksClientTests.cs @@ -342,7 +342,7 @@ public async Task EditHookWithNoNewConfigRetainsTheOldConfigWithRepositoryId() var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryId, _fixture.ExpectedHooks[1].Id, editRepositoryHook); var expectedConfig = new Dictionary { { "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 @@ public async Task EditHookWithNewInformationWithRepositoryId() var actualHook = await github.Repository.Hooks.Edit(_fixture.RepositoryId, _fixture.ExpectedHooks[3].Id, editRepositoryHook); var expectedConfig = new Dictionary { { "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); } diff --git a/Octokit.Tests.Integration/fixtures/RepositoriesHooksFixture.cs b/Octokit.Tests.Integration/fixtures/RepositoriesHooksFixture.cs index 0e713acca6..e7c8cdb3dd 100644 --- a/Octokit.Tests.Integration/fixtures/RepositoriesHooksFixture.cs +++ b/Octokit.Tests.Integration/fixtures/RepositoriesHooksFixture.cs @@ -20,7 +20,7 @@ public RepositoriesHooksFixture() 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]; }