Created
July 9, 2013 18:24
-
-
Save thefringeninja/5959845 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |
}; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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