mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
13 lines
282 B
Ruby
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
|