Quoting Heinz Strunk <[EMAIL PROTECTED]>:
> 
> Hello,
> 
> I'm getting this warning:
> 
> Warning: Ambiguous first argument; make sure.
> 
> in my unit test:
> 
> assert_match /^[a-zA-Z0-9]+$/, user.username
> 
> Does anyone know why or how to change it so it disappears?

IIRC, parentheses fix the warning.  I.e., 

assert_match(/^[a-zA-Z0-9]+$/, user.username)

Why it is ambiguous I will leave to someone better in Ruby than I.

HTH,
  Jeffrey

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to