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)