Add the CSSHandlers file

This commit is contained in:
Thomas Walpole 2013-02-18 14:46:37 -08:00
parent f6ababc62d
commit f53b83227f
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
class Capybara::RackTest::CSSHandlers
def disabled list
list.find_all { |node| node.has_attribute? 'disabled' }
end
def enabled list
list.find_all { |node| !node.has_attribute? 'disabled' }
end
end