diff --git a/src/test/kotlin/apply/acceptance/fixture/TermFixture.kt b/src/test/kotlin/apply/acceptance/fixture/TermFixture.kt index 60eee950a..75b0df06f 100644 --- a/src/test/kotlin/apply/acceptance/fixture/TermFixture.kt +++ b/src/test/kotlin/apply/acceptance/fixture/TermFixture.kt @@ -28,13 +28,12 @@ class TermBuilder { } fun getTermById(termId: Long): TermResponse { - val term = RestAssured.given() + return RestAssured.given() .get("/api/terms/$termId") .then() .extract() .`as`(object : TypeRef>() {}) .body as TermResponse - return TermResponse(term.id, term.name) } fun term(builder: TermBuilder.() -> Unit): TermResponse {