363
364
365
366
367
368
369
370
371
372
373
374
375
376
|
# File 'lib/capybara/minitest.rb', line 363
%w[xpath css].each do |selector_type|
define_method "assert_matches_#{selector_type}" do |*args, &optional_filter_block|
subject, args = determine_subject(args)
assert_matches_selector(subject, selector_type.to_sym, *args, &optional_filter_block)
end
ruby2_keywords "assert_matches_#{selector_type}" if respond_to?(:ruby2_keywords)
define_method "assert_not_matches_#{selector_type}" do |*args, &optional_filter_block|
subject, args = determine_subject(args)
assert_not_matches_selector(subject, selector_type.to_sym, *args, &optional_filter_block)
end
ruby2_keywords "assert_not_matches_#{selector_type}" if respond_to?(:ruby2_keywords)
alias_method "refute_matches_#{selector_type}", "assert_not_matches_#{selector_type}"
end
|