You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not write special code for testing within the controller or model at any time in the tutorial,
as others might likely copy and paste it in their production code.
Instead, override behavior in the tests (e.g. with Mock::Quick ) or better, use a LDAP server you can spawn directly within the tests: Net::LDAP::Server::Test
With 'auto_schema' set in the LDAP test server, you can simply add users to your liking and use the same code for testing as for production.
The text was updated successfully, but these errors were encountered:
from Oliver Günther:
Do not write special code for testing within the controller or model at any time in the tutorial,
as others might likely copy and paste it in their production code.
Instead, override behavior in the tests (e.g. with Mock::Quick ) or better, use a LDAP server you can spawn directly within the tests: Net::LDAP::Server::Test
With 'auto_schema' set in the LDAP test server, you can simply add users to your liking and use the same code for testing as for production.
The text was updated successfully, but these errors were encountered: