#204 ✓invalid
Lindsay Holmwood

undefined method check for HiddenField

Reported by Lindsay Holmwood | March 23rd, 2009 @ 08:05 AM

Using check within Cucumber over this HTML fragment...


<input type="hidden" value="0" class="hidden" name="check[enabled]" id="check[enabled]"/>
<input type="checkbox" class="checkbox" value="1" name="check[enabled]" id="check[enabled]"/>

Gives me:

When I check "check[enabled]" # features/steps/webrat_steps.rb:24

undefined method `check' for #<Webrat::HiddenField:0xb6fe43ac> (NoMethodError)
(eval):2:in `check'
./features/steps/webrat_steps.rb:25:in `/^I check "(.*)"$/'
features/checks.feature:27:in `When I check "check[enabled]"'

Webrat version is 0.4.3.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Attachments

Pages