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

14 lines
282 B
Ruby
Raw Normal View History

2016-03-07 16:52:19 -08:00
# frozen_string_literal: true
2018-01-08 12:23:54 -08:00
class Capybara::RackTest::CSSHandlers < BasicObject
include ::Kernel
2018-01-08 12:23:54 -08:00
2018-01-09 14:05:50 -08:00
def disabled(list)
2013-02-18 14:46:37 -08:00
list.find_all { |node| node.has_attribute? 'disabled' }
2018-01-08 12:23:54 -08:00
end
2018-01-09 14:05:50 -08:00
def enabled(list)
2013-02-18 14:46:37 -08:00
list.find_all { |node| !node.has_attribute? 'disabled' }
end
end