Skip to content

Commit

Permalink
Expect anything for body since the test is about proving the earl is …
Browse files Browse the repository at this point in the history
…correct
  • Loading branch information
ben-biddington committed Dec 19, 2013
1 parent 9f2bb17 commit 5bcdf2d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Octokit.Tests/Clients/IssueCommentsClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void PostsToCorrectUrl()

client.Create("fake", "repo", 1, newComment);

connection.Received().Post<IssueComment>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/1/comments"), newComment);
connection.Received().Post<IssueComment>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/1/comments"), Arg.Any<object>());
}

[Fact]
Expand Down Expand Up @@ -126,8 +126,7 @@ public void PostsToCorrectUrl()

client.Update("fake", "repo", 42, issueCommentUpdate);

connection.Received().Patch<IssueComment>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/comments/42"),
issueCommentUpdate);
connection.Received().Patch<IssueComment>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/comments/42"), Arg.Any<object>());
}

[Fact]
Expand Down

0 comments on commit 5bcdf2d

Please sign in to comment.