From fe40d3dc4b1f07c4df903415f2413bcaa3f0a231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Manciot?= Date: Mon, 13 Apr 2026 09:29:18 +0200 Subject: [PATCH] fix: update AccountRouteSpec to check response status and change project version to 0.8-SNAPSHOT --- build.sbt | 2 +- .../softnetwork/account/scalatest/AccountRouteSpec.scala | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 34845d2..ce488e7 100644 --- a/build.sbt +++ b/build.sbt @@ -18,7 +18,7 @@ ThisBuild / organization := "app.softnetwork" name := "account" -ThisBuild / version := "0.8.0" +ThisBuild / version := "0.8-SNAPSHOT" ThisBuild / scalaVersion := scala212 diff --git a/testkit/src/main/scala/app/softnetwork/account/scalatest/AccountRouteSpec.scala b/testkit/src/main/scala/app/softnetwork/account/scalatest/AccountRouteSpec.scala index 77765ff..61b2d19 100644 --- a/testkit/src/main/scala/app/softnetwork/account/scalatest/AccountRouteSpec.scala +++ b/testkit/src/main/scala/app/softnetwork/account/scalatest/AccountRouteSpec.scala @@ -285,12 +285,14 @@ trait AccountRouteSpec[ } "work with matching email and password" in { implicit val manifest: Manifest[AV] = manifestWrapper.wrapped - AccountKeyDao.lookupAccount(email)(typedSystem()) await { + AccountKeyDao.lookupAccount(email) await { case Some(uuid) => Get( s"/$RootPath/${AccountSettings.Path}/activate", Activate(MockGenerator.computeToken(uuid)) - ) ~> routes + ) ~> routes ~> check { + status shouldEqual StatusCodes.OK + } Post( s"/$RootPath/${AccountSettings.Path}/login", Login(email, password)