senny / corner_stones

capybara building blocks for acceptance tests.
18 stars 8 forks source link

form#attributes should ignore required text #13

Open senny opened 12 years ago

senny commented 12 years ago

Currently form#attributes returns the full label text, which includes the "*" for required fields. This makes writing tests much harder since the field-names change when validations change.

Our required text is contained within the following html: <abbr title="required">*</abbr> I think we should filter the abbr from the text used in the attributes.