[rspec-users] specifying which button webrat should press

Pau Cor lists at ruby-forum.com
Thu Nov 20 12:11:09 EST 2008

Andrew Premdas wrote:
>   And I accept Fred's invite
> scans better than
>   And I push "accept" near "Fred"

That definitely is better. I guess I was trying to be too broad. My 
original goal was to write a match that would work on any page with 
multiple links/buttons (of the same name).

It seems like everyone is suggesting that I write a step that is more 
specific to this particular page. That will make my step matcher MUCH 
simpler, and it will make my story more readable.

Thanks for all the advice!

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list