should_allow_values should accept arrays
Reported by carlivar | June 5th, 2008 @ 02:56 PM
I'd like to be able to do this:
should_allow_values_for :login, %w(bob, thomas_edison, abc123)
Since it's nice to be lazy with quotes. I know, maybe not as readable, but makes converting old unit tests to shoulda a bit easier.
As it stands right now I get this error:
Comments and changes to this ticket
-
Tammer Saleh June 5th, 2008 @ 03:11 PM
- → State changed from new to invalid
should_allow_values_for :login, *%w(bob thomas_edison abc123) -

Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
