Using rspec have_tag

Posted by glenn gillen on Mar 31, 2008

Posted in rspec, testing

Not everyone realises that that rspec have_tag assertion is simply a wrapper for the Test::Unit assert_select. And even if you do, do you really know how powerful a tool it is? I’ve seen many tests and specs where people jump through a whole heap of hoops to check that the desired element exists, well no more! Fresh for today, a quick run down on some of the most useful and powerful selectors you can use with have_tag (and by default, assert_select too).

Continue Reading…

Moving over to Git

Posted by glenn gillen on Mar 28, 2008

Posted in git, version control, installation

So you’ve seen that Rails/Capistrano now natively supports Git? You’ve bearing hearing all the hype about it but don’t really know what it is, how to use it, or how to install it. But like most, you know it was invented by that Linus guy that invented Linux, so it can’t be all bad. Well then come jump on board!

Continue Reading…

Latest Rails Enhancements

Posted by glenn gillen on Mar 26, 2008

Posted in ruby on rails, enhancements

Ever wondered how to keep across the latest developments in the Rails core/edge? Ryan Daigle provides a great commentary, but I’d sleep easier in the knowledge that I wasn’t dependent on just one individual to keep me in the loop. And personally, I’ve found subscribing to the trac tickets gives me a heap of news about tickets I’m not interested in. So, unveiling it here for the first time is my Yahoo! Pipe to show only the latest enhancement tickets in Rails edge.

So without any further ado, consume and enjoy: Latest Rails Enhancements Feed

Continue Reading…

Adding sudoers

Posted by glenn gillen on Mar 20, 2008

Posted in sudo, configuration

It seems that I’ve been getting a noticeable number of users searching on how to add themselves to the sudoers file, so in the interest of ensuring people get the content they want, here is a refresh.

Continue Reading…

New comment system

Posted by glenn gillen on Mar 19, 2008

Posted in comments

I’m still a week away from having my broadband working, so this isn’t business as usual. Just thought I’d point out that I’ve added a new commenting system, Disqus. I can’t begin to explain how simple it was to include into the site, and I love the concept. I hope you all find it useful too.

Continue Reading…