Colfer, Brian wrote:
I am writing a feature that will test an LDAP protected site. I need to login as my self with my real password.

When unit testing, thou shalt not hit the wire. Mock anything that goes further than your database.

Put another way, you are not going to refactor LDAP itself, or add features to it, so mocks should set the boundaries to what you do expect to refactor.

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to