sparklemotion/mechanize — pull request #267 by Umofomia (2012-10-11 23:01:03+00:00)
Title: Fix Mechanize::Form::Field#inspect to read from accessor methods

This fixes `Mechanize::Form::Field#inspect` to read from accessor methods rather than directly from instance variables. Without this fix, `#inspect` ends up displaying incorrect attribute values when the accessor methods are overridden by subclasses such as `SelectList`.

For instance in the following test case:

```html

Option 1

Option 2

Option 3

Option 4

Option 5

Option 6

```

* Before fix: `[selectlist:0x817657d8 type: name: select value: ]`
* After fix: `[selectlist:0x817657d8 type: name: select value: 2]`