From: The Higgs bozo Date: 2009-03-31T06:20:56+09:00 Subject: Re: testy.rb - ruby testing that's mad at the world Ara Howard wrote: > On Mar 30, 2009, at 12:20 PM, Phrogz wrote: > >> I disagree. I 'learn' it each time I look at it, and then I forget it. >> I think possibly because I think it's backwards. >> >> The same goes for alias_method for me. I cannot tell you how many >> times I've had to look up the order of old_name/new_name. And with >> this, it's certainly because I think the values are backwards. (I just >> had to look up the order to be sure.) > > 100% agree on both counts. i personally would always use the options > approach (:expected, :actual =>) because of that. Ha, and I thought it was only me with alias_method and assert_equal dyslexia. With alias_method, I find myself expecting it to act like 'cp' or 'ln', and I have to keep remembering it's the opposite of that, even after a hundred times of re-remembering. And assert_equal order is the opposite to the usual order in English, which I guess is a selling point of rspec. Along the same lines, I always ask irb about methods(true) vs methods(false). I'm like, OK I just want what's recently defined -- true? Doh. OK then, false, I only want the recent definitions. False -- do not include super. See? I am even forgetting, right now, as I type this, which is which. "I curse you in ways multifarious!" "OK, will that be Curses.methods(true) or Curses.methods(false)?" "ARGGH!" -- Posted via http://www.ruby-forum.com/.