123456789_123456789_123456789_123456789_123456789_

Module: Capybara::RSpecMatcherProxies

Relationships & Source Files
Defined in: lib/capybara/rspec/matcher_proxies.rb

Instance Method Summary

Instance Method Details

#all(*args, **kwargs, &block)

[ GitHub ]

  
# 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)

[ GitHub ]

  
# 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