On Fri, Dec 14, 2012 at 4:49 PM, jared <
ja...@yourelevation.com> wrote:
> Thanks for the reply, at least I can stop looking for a way to do that now.
>
> I had been doing what you suggested, but when checking for a series of
> elements under a selector it would be nice to do this:
>
> rendered.should have_selector("form[action='#{new_account_path}']") do
> |form|
> form.should have_field("user_login", :type => text)
> form.should have_field("user_password", :type => text)
> form.should have_field("user_password_confirmation", :type => text)
> # ... etc ...
> end
>
> rather than this:
>
> rendered.should have_selector("form[action='#{new_account_path}']
> input#user_login[type='text']")
> rendered.should have_selector("form[action='#{new_account_path}']
> input#user_password[type='password']")
> rendered.should have_selector("form[action='#{new_account_path}']
> input_user_password_confirmation[type='password']")
>
> Doesn't feel right, you know?