File: css_handlers.rb

package info (click to toggle)
ruby-capybara 2.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,376 kB
  • ctags: 779
  • sloc: ruby: 12,494; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
# 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