module Capybara::Minitest::Assertions
def determine_subject(args)
def determine_subject(args) case args.first when Capybara::Session, Capybara::Node::Base, Capybara::Node::Simple [args.shift, args] when ->(arg) { arg.respond_to?(:to_capybara_node) } [args.shift.to_capybara_node, args] else [page, args] end end
def extract_locator(args)
def extract_locator(args) locator, options = *args, {} locator, options = nil, locator if locator.is_a? Hash [locator, options] end