Add tests through post curr permalink
- Resolve SQLite / RethinkDB env refresh hiccups
This commit is contained in:
@@ -225,6 +225,39 @@ let postTests = testList "Post" [
|
||||
do! freshEnvironment ()
|
||||
do! PostDataTests.``Add succeeds`` data.Value
|
||||
}
|
||||
testTask "CountByStatus succeeds" {
|
||||
do! PostDataTests.``CountByStatus succeeds`` data.Value
|
||||
}
|
||||
testList "FindById" [
|
||||
testTask "succeeds when a post is found" {
|
||||
do! PostDataTests.``FindById succeeds when a post is found`` data.Value
|
||||
}
|
||||
testTask "succeeds when a post is not found (incorrect weblog)" {
|
||||
do! PostDataTests.``FindById succeeds when a post is not found (incorrect weblog)`` data.Value
|
||||
}
|
||||
testTask "succeeds when a post is not found (bad post ID)" {
|
||||
do! PostDataTests.``FindById succeeds when a post is not found (bad post ID)`` data.Value
|
||||
}
|
||||
]
|
||||
testList "FindByPermalink" [
|
||||
testTask "succeeds when a post is found" {
|
||||
do! PostDataTests.``FindByPermalink succeeds when a post is found`` data.Value
|
||||
}
|
||||
testTask "succeeds when a post is not found (incorrect weblog)" {
|
||||
do! PostDataTests.``FindByPermalink succeeds when a post is not found (incorrect weblog)`` data.Value
|
||||
}
|
||||
testTask "succeeds when a post is not found (no such permalink)" {
|
||||
do! PostDataTests.``FindByPermalink succeeds when a post is not found (no such permalink)`` data.Value
|
||||
}
|
||||
]
|
||||
testList "FindCurrentPermalink" [
|
||||
testTask "succeeds when a post is found" {
|
||||
do! PostDataTests.``FindCurrentPermalink succeeds when a post is found`` data.Value
|
||||
}
|
||||
testTask "succeeds when a post is not found" {
|
||||
do! PostDataTests.``FindCurrentPermalink succeeds when a post is not found`` data.Value
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
/// Drop the throwaway RethinkDB database
|
||||
|
||||
Reference in New Issue
Block a user