Skip to content

Commit

Permalink
tweaking integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jul 23, 2016
1 parent 5579c1f commit 2686cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<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);
}
Expand Down Expand Up @@ -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<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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 2686cce

Please sign in to comment.