Skip to content

Instantly share code, notes, and snippets.

@thefringeninja
Created July 9, 2013 18:24
Show Gist options
  • Save thefringeninja/5959845 to your computer and use it in GitHub Desktop.
Save thefringeninja/5959845 to your computer and use it in GitHub Desktop.
public class ClaimsModuleSpecifications
{
public Specification list_of_existing_claims()
{
return new ModuleSpecification<ClaimsModule>
{
Bootstrap = bootstrapper => { },
When = () => UserAgent.Get("/claims"),
Expect =
{
response => response.StatusCode.Equals(HttpStatusCode.OK),
response => response.StatusCode.Is(HttpStatusCode.OK)
}
};
}
}
list of existing claims - Failed
On:
GET /claims
Results with:
HTTP/1.1 501 Not Implemented
Expectations:
Assertion failed, expression was:
The Response's Status Code Equals((object)(O K))
' | '
| | OK
| False
NotImplemented
Assertion failed, expression was:
The Response's Status Code Is(O K)
' |
| False
NotImplemented
--------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment