From 67247a050caa89e218e910472abd084eabfd60a3 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sat, 4 Oct 2014 10:10:29 -0300 Subject: [PATCH] use the correct refs as the api validation is shouty shouty --- .../Clients/PullRequestReviewCommentsClientTests.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs b/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs index b3da09e9..b06cb06e 100644 --- a/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs +++ b/Octokit.Tests.Integration/Clients/PullRequestReviewCommentsClientTests.cs @@ -12,7 +12,9 @@ public class PullRequestReviewCommentsClientTests : IDisposable readonly IPullRequestReviewCommentsClient _client; readonly Repository _repository; - const string branchName = "heads/new-branch"; + const string branchName = "new-branch"; + const string branchHead = "heads/" + branchName; + const string branchRef = "refs/" + branchHead; const string path = "CONTRIBUTING.md"; public PullRequestReviewCommentsClientTests() @@ -240,12 +242,12 @@ public class PullRequestReviewCommentsClientTests : IDisposable // Creating a branch - var newBranch = new NewReference("refs/" + branchName, createdCommitInMaster.Sha); + var newBranch = new NewReference(branchRef, createdCommitInMaster.Sha); await _gitHubClient.GitDatabase.Reference.Create(Helper.UserName, repoName, newBranch); // Creating a commit in the branch - var createdCommitInBranch = await CreateCommit(repoName, "Hello from the fork!", path, branchName, "A branch commit message"); + var createdCommitInBranch = await CreateCommit(repoName, "Hello from the fork!", path, branchHead, "A branch commit message"); // Creating a pull request