jnicklas/capybara — pull request #989 by zewelor (2013-03-04 12:45:12+00:00)
Title: Cast value to string if input has maxlength option

Hi

when we do
```ruby
fill_in "test", :with => 1
```
```html

```

it works fine as 1 gets casted into string. When we do the same for

```html

```

we get error
```
can't convert Range into Integer
```