[rspec-users] Specifying a few valid values

Jonathan Leighton j at jonathanleighton.com
Thu Jul 17 12:04:49 EDT 2008


On Thu, 2008-07-17 at 09:40 -0500, David Chelimsky wrote:
> On Thu, Jul 17, 2008 at 9:37 AM, Zach Dennis <zach.dennis at gmail.com> wrote:
> > Perhaps...
> >
> >  When "I login with invalid credentials"
> >  Then "I see that I have not been logged in"
> 
> Or ....
> 
> When I login with invalid credentials
> Then I should see the login form
> And I should see a message saying "Something went wrong."

What would be the implementation of "Then I should see the login form"?
We are already testing for an error message :)

Jon



More information about the rspec-users mailing list