[rspec-users] How to write a feature that calls for a prompt?
phlip2005 at gmail.com
Tue Apr 14 23:22:16 EDT 2009
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.
More information about the rspec-users