[rspec-users] How to write a feature that calls for a prompt?

Colfer, Brian bcolfer at shopping.com
Wed Apr 15 02:46:06 EDT 2009


Phlip,

Ah, but I am not unit testing ... I am writing an acceptance test. I am
QA, not the developer and using cucumber to automate the functional and
acceptance tests.

Brian 

 

-----Original Message-----
From: rspec-users-bounces at rubyforge.org
[mailto:rspec-users-bounces at rubyforge.org] On Behalf Of Phlip
Sent: Tuesday, April 14, 2009 8:22 PM
To: rspec-users at rubyforge.org
Subject: Re: [rspec-users] How to write a feature that calls for a
prompt?

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 at rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list