1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/rack_test/css_handlers.rb
2018-01-09 16:01:47 -08:00

13 lines
282 B
Ruby

# frozen_string_literal: true
class Capybara::RackTest::CSSHandlers < BasicObject
include ::Kernel
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