Behat / CommonContexts

Common FeatureContext classes for Behat
116 stars 34 forks source link

Implement Step for Checking the Response Header #45

Closed dready closed 5 years ago

dready commented 11 years ago

This Step let you check if the Response Header contains (or should not contain) a specific text.

For Example: And response header "Content-Type" should contain "json"

This allows you to check if the Content-Type from the server returns json. The Step is generic so you can check any Header.