On Wed, Apr 15, 2009 at 8:46 AM, Colfer, Brian <bcol...@shopping.com> wrote:
> 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. > By LDAP protected site - do you mean a web application that has a login form and a server component that authenticates the user against an LDAP server? Is this a Rails app? Or a web app in some other language? Not a web app at all? Users usually don't access LDAP directly, but via some user interface, so interacting directly with LDAP from Cucumber sounds wrong to me. Can you describe the architecture of your application a little more? What language, framework and components is it built on, and how are they connected? Aslak > > Brian > > > > -----Original Message----- > From: rspec-users-boun...@rubyforge.org > [mailto:rspec-users-boun...@rubyforge.org] On Behalf Of Phlip > Sent: Tuesday, April 14, 2009 8:22 PM > To: rspec-users@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@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users