From: Will Parsons Date: 2009-02-06T02:29:34+09:00 Subject: Re: custom assertion message for unit tests Sandor Sz�cs wrote: > Maybe it is not necessary to customize the assertion so much. > > On 04.02.2009, at 23:59, Will Parsons wrote: > >> I would like the expected and actual permissions to be >> displayed in octal rather than decimal. How can I do that? > > irb(main):005:0> "420".to_i >=> 420 > irb(main):006:0> "420".to_i.to_s(8) >=> "644" > irb(main):007:0> "420".to_i.to_s(8).to_i >=> 644 Tricky, but it works! -- Will