Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rb-de0 committed Aug 11, 2018
1 parent 19dbfb4 commit a5255d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ final class AdminCategoryControllerTests: ControllerTestCase, AdminTestCase {

response = try waitResponse(method: .GET, url: "/admin/categories/1/edit")

XCTAssertEqual(response.http.status, .internalServerError)
XCTAssertEqual(response.http.status, .notFound)

_ = try DataMaker.makeCategory("Programming").save(on: conn).wait()

Expand Down Expand Up @@ -193,4 +193,4 @@ extension AdminCategoryControllerTests {
("testCannotCreateCategoryAtAlreadyExist", testCannotCreateCategoryAtAlreadyExist),
("testCanUpdateACategory", testCanUpdateACategory)
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ final class AdminPostControllerTests: ControllerTestCase, AdminTestCase {

response = try waitResponse(method: .GET, url: "/admin/posts/1/edit")

XCTAssertEqual(response.http.status, .internalServerError)
XCTAssertEqual(response.http.status, .notFound)

_ = try DataMaker.makePost(on: app, conn: conn).save(on: conn).wait()

Expand Down Expand Up @@ -353,4 +353,4 @@ extension AdminPostControllerTests {
("testCanUpdateAPost", testCanUpdateAPost),
("testCanAddTagsOnUpdate", testCanAddTagsOnUpdate)
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ final class AdminTagControllerTests: ControllerTestCase, AdminTestCase {

response = try waitResponse(method: .GET, url: "/admin/tags/1/edit")

XCTAssertEqual(response.http.status, .internalServerError)
XCTAssertEqual(response.http.status, .notFound)

_ = try DataMaker.makeTag("Swift").save(on: conn).wait()

Expand Down Expand Up @@ -192,4 +192,4 @@ extension AdminTagControllerTests {
("testCannotCreateTagAtAlreadyExist", testCannotCreateTagAtAlreadyExist),
("testCanUpdateATag", testCanUpdateATag)
]
}
}

0 comments on commit a5255d0

Please sign in to comment.