#40 ✓resolved
Ben Mabey

Better error message for missing option

Reported by Ben Mabey | November 15th, 2008 @ 04:35 PM

If a found select box does not contain the specified option a better error message should be presented.

This is how it works now...

Assuming you have a select box called "Pets" with the following options: Cat, Fish. Bird.

When you run the following:

select "Dog, :from => "Pets"

You see the following error:

The error occurred while evaluating nil.choose (NoMethodError)

It should say something like "'Dog' was not an option in the 'Pets' select box."

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

Referenced by