From: Phlip Date: 2009-02-05T12:54:33+09:00 Subject: Re: custom assertion message for unit tests Will Parsons wrote: > Yes, because I want also to check for being read-only in addition to being > executable in the file permissions. If I felt the request to take the "" off of "0775" sounded a little petty, this would probably be on account of I'm disturbed by so much effort to achieve 0775 when "File(...).readonly? == true" is a little bit more readable! How about assert{ `ls -l #{filename.inspect}` =~ /-rwxr-wr-w/ } ?