Updating some SpecFlow tests including fixing and extending one of the blog tests (for live writer)

Also updated SendKnownResponseHeader to pick up the Content-Type

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-18 10:24:26 -08:00
parent 5ab8e1e9f1
commit 8956dcb5f5
8 changed files with 51 additions and 28 deletions

View File

@@ -233,6 +233,11 @@ namespace Orchard.Specs.Bindings {
Assert.That(Details.StatusDescription, Is.EqualTo(statusDescription));
}
[Then(@"the content type should be ""(.*)""")]
public void ThenTheContentTypeShouldBe(string contentType) {
Assert.That(Details.ResponseHeaders["Content-Type"], Is.StringMatching(contentType));
}
[Then(@"I should see ""(.*)""")]
public void ThenIShouldSee(string text) {
Assert.That(Details.ResponseText, Is.StringMatching(text));