Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cast value to string if input has maxlength option #989

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

zewelor commented Mar 4, 2013

Hi

when we do

fill_in "test", :with => 1
<input type="text" name="test">

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

<input type="text" name="test" maxlength="100">

we get error

can't convert Range into Integer
Collaborator

jnicklas commented Mar 8, 2013

Please add some tests to this pull request.

@jnicklas jnicklas closed this in 6ce45f2 Mar 26, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment