This project is archived and is in readonly mode.
assert_select checking for negatives
Reported by Bart Zonneveld | September 3rd, 2008 @ 03:01 PM | in 2.x
Hey all,
I found myself testing for a checkbox that isn't checked today. It would be nice if assert_select accepted something like: assert_select "[!checked]"
Comments and changes to this ticket
-
Nobuhiro IMAI September 14th, 2008 @ 09:05 AM
How about the following workaround?
assert_raise(Test::Unit::AssertionFailedError) do assert_select "[checked=checked]" end
Firebug seems to recognize [checked!=checked]. HTH.
-
Pratik December 19th, 2008 @ 03:07 PM
- State changed from new to invalid
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>