
Question mark placeholders
Reported by Zach Dennis | February 19th, 2009 @ 02:21 PM
I think Webrat should support the question mark placeholders that Rails introduced into assert_select. It is a very convenient and readable way to insert content into a selector string w/o having to worry about producing nasty interpolation #{} characters or mess around with quoting.
It seems like if its supported at a low-level like HaveXpath then HaveSelector and HaveTag can get it for free (and any other helpers which build on that foundation). IE:
response.should have_tag("form[action=?]", resources_path)
WYDT?
Comments and changes to this ticket
-
gaffo May 7th, 2009 @ 03:22 PM
- Tag changed from featurerequest to featurerequest, stale
- State changed from new to open
Zach, It's been a while and I wanted to know if you still thought that this was a good feature? I'm not sure what the use case for this would be, it might help if you provided a html and code example.
-
gaffo June 3rd, 2009 @ 10:36 AM
- State changed from open to out-of-date
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.