Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-write Test for LDAP #13

Open
duffee opened this issue Dec 17, 2015 · 0 comments
Open

Re-write Test for LDAP #13

duffee opened this issue Dec 17, 2015 · 0 comments
Assignees
Milestone

Comments

@duffee
Copy link
Owner

duffee commented Dec 17, 2015

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.

@duffee duffee self-assigned this Dec 17, 2015
@duffee duffee added this to the v0.02 milestone Dec 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant