Given that the directory is temporary, it seems reasonable to silently create it if it doesn't already exist. This just tripped me up because our deployment script wasn't creating the directory.
I would request one tweak to this. Instead of running the whole example set for the case when the session directory doesn't exist, can you just assert that it gets created?
Given that the directory is temporary, it seems reasonable to silently create it if it doesn't already exist. This just tripped me up because our deployment script wasn't creating the directory.