Better flashes code. Specs for flashes