A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.rubydoc.info/github/teamcapybara/capybara/Capybara/RSpecMatchers/Matchers/MatchStyle below:

MatchStyle – Documentation for teamcapybara/capybara (master) – RubyDoc.info

Class: Capybara::RSpecMatchers::Matchers::MatchStyle Instance Attribute Summary Attributes inherited from Base

#failure_message, #failure_message_when_negated

Instance Method Summary collapse Methods inherited from WrappedElementMatcher

#matches?

Methods included from Compound

#and, #and_then, #or

Constructor Details #initialize(styles = nil, **kw_args, &filter_block) ⇒ MatchStyle

Returns a new instance of MatchStyle.

9
10
11
12
# File 'lib/capybara/rspec/matchers/match_style.rb', line 9

def initialize(styles = nil, **kw_args, &filter_block)
  styles, kw_args = kw_args, {} if styles.nil?
  super(styles, **kw_args, &filter_block)
end
Instance Method Details #description ⇒ Object
22
23
24
# File 'lib/capybara/rspec/matchers/match_style.rb', line 22

def description
  'match style'
end
#does_not_match?(_actual) ⇒ Boolean
18
19
20
# File 'lib/capybara/rspec/matchers/match_style.rb', line 18

def does_not_match?(_actual)
  raise ArgumentError, 'The match_style matcher does not support use with not_to/should_not'
end
#element_matches?(el) ⇒ Boolean
14
15
16
# File 'lib/capybara/rspec/matchers/match_style.rb', line 14

def element_matches?(el)
  el.assert_matches_style(*@args, **@kw_args)
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4