File: match_query.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 (19 lines) | stat: -rw-r--r-- 302 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Capybara
  module Queries
    class MatchQuery < Capybara::Queries::SelectorQuery
      def visible
        if options.has_key?(:visible)
          super
        else
          :all
        end
      end

      private

      def valid_keys
        super - COUNT_KEYS
      end
    end
  end
end