
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
-
Ben Mabey November 15th, 2008 @ 05:00 PM
- Tag changed from error_messaging to error_messaging, patch
Patch is here:
http://github.com/bmabey/webrat/...
I also removed an extra require that I accidently left in:
-
Bryan Helmkamp November 15th, 2008 @ 07:34 PM
- State changed from new to resolved
Thanks for the patch, Ben. Looks good. I've merged this in.
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.
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.
People watching this ticket
Tags
Referenced by
-
322 Within doesn't work when using webrat with selenium Copied from GitHub issue #40