They are not. I moved my logic to controller.
It will be called each time user visits that page,
but this is not a big overhead.

W dniu czwartek, 21 sierpnia 2014 18:02:13 UTC+2 użytkownik 
[email protected] napisał:
>
> 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)
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/a9d77b04-c4d0-431e-852f-90fe427f4890%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to