[rspec-users] Specifying a few valid values

Zach Dennis zach.dennis at gmail.com
Thu Jul 17 10:37:56 EDT 2008


  When "I login with invalid credentials"
  Then "I see that I have not been logged in"

And in your implementation of the Then you could make sure they are at
the login form still.


On Thu, Jul 17, 2008 at 10:19 AM, Jonathan Leighton
<j at jonathanleighton.com> wrote:
> On Thu, 2008-07-17 at 08:50 -0500, David Chelimsky wrote:
>> Are you familiar with Webrat?
> Yep, we are using it. However, I want to test what happens when invalid
> data is entered - that's the reason to specify that the form gets shown.
> What would you consider a better approach to verify the user sees the
> form again, instead of moving on through the application? I guess I
> could test that they *don't* get redirected?
> Cheers,
> Jon
> --
> Jonathan Leighton
> http://jonathanleighton.com/
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

Zach Dennis

More information about the rspec-users mailing list