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/RSpecMatcherProxies below:

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

Module: Capybara::RSpecMatcherProxies
Defined in:
lib/capybara/rspec/matcher_proxies.rb
Instance Method Summary collapse Instance Method Details #all(*args, **kwargs, &block) ⇒ Object
5
6
7
8
9
10
11
# File 'lib/capybara/rspec/matcher_proxies.rb', line 5

def all(*args, **kwargs, &block)
  if defined?(::RSpec::Matchers::BuiltIn::All) && args.first.respond_to?(:matches?)
    ::RSpec::Matchers::BuiltIn::All.new(*args)
  else
    find_all(*args, **kwargs, &block)
  end
end
#within(*args, **kwargs, &block) ⇒ Object
13
14
15
16
17
18
19
# File 'lib/capybara/rspec/matcher_proxies.rb', line 13

def within(*args, **kwargs, &block)
  if block
    within_element(*args, **kwargs, &block)
  else
    be_within(*args)
  end
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