diff --git a/src/Nancy.Tests.Functional/Tests/ContentNegotiationFixture.cs b/src/Nancy.Tests.Functional/Tests/ContentNegotiationFixture.cs index dea6cee6c9..ea6bd25f24 100644 --- a/src/Nancy.Tests.Functional/Tests/ContentNegotiationFixture.cs +++ b/src/Nancy.Tests.Functional/Tests/ContentNegotiationFixture.cs @@ -160,7 +160,7 @@ public void Should_set_reason_phrase_on_response() var negotiator = new Negotiator(context); - negotiator.WithReasonPhrase("The test is passing!"); + negotiator.WithReasonPhrase("The test is passing!").WithStatusCode(404); return negotiator; }); @@ -168,13 +168,13 @@ public void Should_set_reason_phrase_on_response() var brower = new Browser(with => { + with.StatusCodeHandler(); with.ResponseProcessor(); - with.Module(module); }); // When - var response = brower.Get("/customPhrase"); + var response = brower.Get("/customPhrase", with => with.Accept("application/json")); // Then Assert.Equal("The test is passing!", response.ReasonPhrase); @@ -894,4 +894,4 @@ private class NotFoundStatusCodeHandlerResult public string Message { get; set; } } } -} \ No newline at end of file +}