I am currently writing a number of Scalatra tests using the ScalaTest framework and the ScalatraSuite class.
test("when i try to go to the base url it shold redirect me "){
get("/") {
status should be(302)
}
}
The next step requires me to check the existance of some session values but it is unclear how to do this? Can anyone advise? I am creating a SessionAccess trait that, for the purposes of the test, overriding witha simple trait the stores session in an accessible HashMap but I am certain there is a simpler way?