From 0f22838464c007f9e88f345c10bb14c6a5197421 Mon Sep 17 00:00:00 2001 From: Kristian Hellang Date: Mon, 7 Dec 2015 17:45:37 +0100 Subject: [PATCH] Tweak test to fail --- .../Tests/ContentNegotiationFixture.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 +}