benvanstaveren / Mojolicious-Plugin-Database

"proper" handling of DBI based connections in Mojolicious
http://search.cpan.org/dist/Mojolicious-Plugin-Database/
9 stars 3 forks source link

Use File::Temp tmpnam for test database name #3

Closed alabamapaul closed 12 years ago

alabamapaul commented 12 years ago

Use the core module File::Temp tmpnam() to generate a temporary filename for the test database. This works on Linux and Windows (which does not have a /tmp directory)