I was happily mocking away with Mocha, then I passed a stub to a case statement at which point I was a little flummoxed. The Ruby documentation clearly states that the ‘when’ in a ‘case’ statement uses the ‘===’ method for comparing the subject so I couldn’t work out why something like the following wasn’t […]
There is a great deal of documentation and many posts on Git out there, so this is more of a note to self as I keep forgetting the steps needed to set up a remote repository and doing an initial “push”. So, firstly setup the remote repository: ssh firstname.lastname@example.org mkdir my_project.git cd my_project.git git init […]
I generally make a point of not unit testing private methods however in some circumstance I find it necessary to do so. One example of this is when a class method is to be documented in the API of a library, only for use when declaring a descendent class (the Rails validates_* macros could be […]
So, after switching from Subversion to Git approximately a month ago, how has it been? Well, what can I say, all the hype is deserved. Git makes things like branching, merging and tagging something that I no longer have to think about. At first I wasn’t completely sold on the idea of keeping multiple copies […]
This is a very boring post considering it’s the first in over a year but hey, I have to start somewhere. Since upgrading to Leopard, even on clean installs, it decides to show system files such as /usr /bin /etc etc. To re-hide these files use the following: sudo /Developer/Tools/SetFile -a V /bin The -a […]
Call me a cynic, but posts like this one on the Surfin’ Safari blog worry me a little. Let me explain… I don’t know if anyone remembers back to the days of Netscape 4 and Explorer 3.5? – It was a time of table based layouts and browser sniffing. Each browser had it’s own “feature” […]
I am a great fan of ZenTest’s ‘autotest’ tool and use it continuously whilst developing Rails apps. Up until now I’d not found a way to use autotest while developing plugins. h3. The problem After some digging around in the ZenTest source, it turns out that autotest looks for files that are prefixed with test_ […]
It’s “things like this”:http://headrush.typepad.com/creating_passionate_users/2007/03/as_i_type_this_.html that are making me loose faith in the human race. What must go through these peoples heads? …I don’t even want to imagine.
“SonicIQ”:http://www.soniciq.com are looking for a “Junior Ruby on Rails Developer”:http://jobs.37signals.com/jobs/1203. We are based in Bournemouth, Dorset, UK. Anyone interested in working professionally with Rails on some exciting projects please “drop us your CV”:http://jobs.37signals.com/jobs/1203.