class Capybara::RSpecMatchers::HaveSelector

Public Class Methods

new(*args) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 14
def initialize(*args)
  @args = args
end

Public Instance Methods

description() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 26
def description
  "have #{query.description}"
end
does_not_match?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 22
def does_not_match?(actual)
  wrap(actual).assert_no_selector(*@args)
end
matches?(actual) click to toggle source
# File lib/capybara/rspec/matchers.rb, line 18
def matches?(actual)
  wrap(actual).assert_selector(*@args)
end
query() click to toggle source
# File lib/capybara/rspec/matchers.rb, line 30
def query
  @query ||= Capybara::Query.new(*@args)
end