From: Will Parsons Date: 2009-02-05T07:59:36+09:00 Subject: custom assertion message for unit tests I'm having trouble trying to figure out how to customize an assertion message when running unit tests. In particular, I want to check the permissions on a file, so I have something like: assert_equal(0755, File.stat(test_file).mode & 0777) If it fails, I get a message like: <493> expected but was <420>. and of course I would like the expected and actual permissions to be displayed in octal rather than decimal. How can I do that? -- Will