Ruby assertions and disabled inputs
Posted
by brad
on Stack Overflow
See other posts from Stack Overflow
or by brad
Published on 2010-01-12T02:08:28Z
Indexed on
2010/05/24
10:41 UTC
Read the original article
Hit count: 316
Does anyone know how to assert that a checkbox or input is disabled? I can't find anything to indicated that this is supported I'm writing cucumber tests with webrat and test/unit.
I'd like to have a step that is able to assert_disabled :some_checkbox || assert_disabled :some_input.
Or some way that I can check a property of the checkbox.
© Stack Overflow or respective owner