Hi!
I have an application, which creates default admin account, when it is first run.
It does by calling init script in priv/init.
The script checks, if there are any admin accounts
and if there is none, than it creates one.
I wanted to test logging in, but I am getting invalid login/password with following line:
Database: []
Are init scripts called before running functional tests?
Can I somehow call init script manually?
If I can't. How can I ensure, that there is some data before testing starts.
(Of course my application does not permit creating admin accounts, if you are not admin)