Skip to content

Commit

Permalink
updating tests as the example repository changed
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Oct 4, 2016
1 parent 46acb4d commit aa6edd0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Octokit.Tests.Integration/Clients/PullRequestsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ public async Task CanBrowseCommits()

var result = await _fixture.Commits(Helper.UserName, _context.RepositoryName, pullRequest.Number);

Assert.Equal(1, result.Count);
Assert.Equal(2, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
}

Expand All @@ -765,7 +765,7 @@ public async Task CanBrowseCommitsWithRepositoryId()

var result = await _fixture.Commits(_context.Repository.Id, pullRequest.Number);

Assert.Equal(1, result.Count);
Assert.Equal(2, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
}

Expand Down Expand Up @@ -794,11 +794,11 @@ public async Task CanGetCommitsAndCommentCount()

var result = await _fixture.Commits(Helper.UserName, _context.RepositoryName, pullRequest.Number);

Assert.Equal(2, result.Count);
Assert.Equal(3, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
Assert.Equal(0, result[0].Commit.CommentCount);
Assert.Equal(commitMessage, result[1].Commit.Message);
Assert.Equal(1, result[1].Commit.CommentCount);
Assert.Equal(commitMessage, result[2].Commit.Message);
Assert.Equal(1, result[2].Commit.CommentCount);
}

[IntegrationTest]
Expand Down Expand Up @@ -826,11 +826,11 @@ public async Task CanGetCommitsAndCommentCountWithRepositoryId()

var result = await _fixture.Commits(_context.Repository.Id, pullRequest.Number);

Assert.Equal(2, result.Count);
Assert.Equal(3, result.Count);
Assert.Equal("this is the commit to merge into the pull request", result[0].Commit.Message);
Assert.Equal(0, result[0].Commit.CommentCount);
Assert.Equal(commitMessage, result[1].Commit.Message);
Assert.Equal(1, result[1].Commit.CommentCount);
Assert.Equal(commitMessage, result[2].Commit.Message);
Assert.Equal(1, result[2].Commit.CommentCount);
}

[IntegrationTest]
Expand Down

2 comments on commit aa6edd0

@ryangribble
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, sorry for this one! 😭

@shiftkey
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.