wait, nevermind
turns out there was a callback that was being hidden - and triggering
a different error
all's well
On Nov 21, 9:34 am, Andy Koch wrote:
> Hi,
>
> I'm getting invalid results when testing a Regex in a format
> validation on a Rails model.
>
> Code is...
>
> # in Model
> # allow '
Hi Andy,
Nothing jumps out at me at the moment. If you think there might be a
difference between dev and test, you could launch script/console with the
test env. and try it again on the console.
$ script/console test
Regards,
Craig
--
Craig Demyanovich
Mutually Human Software
http://mutually
Hi,
I'm getting invalid results when testing a Regex in a format
validation on a Rails model.
Code is...
# in Model
# allow '- n/a -' or alphanum with _ -- no spaces
validates_format_of :test_name, :with => /\A[A-Za-z0-9_]+\z/, :unless
=> lambda{|x| x.test_name == '- n/a -'}
# in spec
hardware_