# File lib/test/rails/view_test_case.rb, line 362
  def assert_label(*args)
    action, for_attribute = args.length == 1 ? [nil, *args] : args

    raise ArgumentError, 'supply for_attribute' if for_attribute.nil?

    label_selector = "label[for='#{for_attribute}']"

    assert_select_in_form action do assert_select label_selector end
  end