Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Commit

Permalink
Tweak test to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
khellang authored and thecodejunkie committed Dec 14, 2015
1 parent 84579ca commit 0f22838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Nancy.Tests.Functional/Tests/ContentNegotiationFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,21 @@ 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;
});
});

var brower = new Browser(with =>
{
with.StatusCodeHandler<DefaultStatusCodeHandler>();
with.ResponseProcessor<TestProcessor>();
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);
Expand Down Expand Up @@ -894,4 +894,4 @@ private class NotFoundStatusCodeHandlerResult
public string Message { get; set; }
}
}
}
}

0 comments on commit 0f22838

Please sign in to comment.