123456789_123456789_123456789_123456789_123456789_

Class: Capybara::RSpecMatchers::Matchers::HaveNoSelectors

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, WrappedElementMatcher, Base, Compound, RSpec::Matchers::Composable
Inherits: Capybara::RSpecMatchers::Matchers::WrappedElementMatcher
Defined in: lib/capybara/rspec/matchers/have_selector.rb

Class Method Summary

Base - Inherited

Instance Attribute Summary

Instance Method Summary

Constructor Details

This class inherits a constructor from Capybara::RSpecMatchers::Matchers::Base

Instance Method Details

#description

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 53

def description = 'have no selectors'

#does_not_match?(_actual) ⇒ Boolean

Raises:

  • (ArgumentError)
[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 49

def does_not_match?(_actual)
  raise ArgumentError, 'The have_none_of_selectors matcher does not support use with not_to/should_not'
end

#element_matches?(el) ⇒ Boolean

[ GitHub ]

  
# File 'lib/capybara/rspec/matchers/have_selector.rb', line 45

def element_matches?(el)
  el.assert_none_of_selectors(*@args, **session_query_options, &@filter_block)
end