diff --git a/Octokit.Tests/Clients/MiscellaneousClientTests.cs b/Octokit.Tests/Clients/MiscellaneousClientTests.cs index 95074e00aa..08af90000f 100644 --- a/Octokit.Tests/Clients/MiscellaneousClientTests.cs +++ b/Octokit.Tests/Clients/MiscellaneousClientTests.cs @@ -196,11 +196,12 @@ public async Task RequestsTheLicensesEndpoint() { IReadOnlyList response = new ReadOnlyCollection(new List() { - new LicenseMetadata("foo1", "node-id-1", "foo2", "http://example.com/foo1", "something", true), - new LicenseMetadata("bar1", "node-id-1", "bar2", "http://example.com/bar1", "something else", false ) + new LicenseMetadata("foo1", "node-id-1", "foo2", "something", "http://example.com/foo1", true), + new LicenseMetadata("bar1", "node-id-1", "bar2", "something else", "http://example.com/bar1", false) }); + var connection = Substitute.For(); - connection.GetAll(Args.Uri, null, AcceptHeaders.LicensesApiPreview, Args.ApiOptions) + connection.GetAll(Arg.Is(u => u.ToString() == "licenses"), null, "application/vnd.github.drax-preview+json", Args.ApiOptions) .Returns(Task.FromResult(response)); var client = new MiscellaneousClient(connection);