I haven't used MiniTest before, but your syntax for checking an attribute looks right.
I'm worried about your use of find_field. The docs say:
Locate the form field on the page. A field can be found by its name, identifier or label.
It looks like you are trying to find a field based on a label. If so, I would check that you have a for attribute and that it has the correct identifier for the form field you are looking for. To eliminate this problem, you can temporarily mark your form field and look for it explicitly.
source share