This week in Rails – 09/06 to 13/06

By Myles Eftos

It seems that testing has been on the flavour of the week, which is apt really as I myself have been playing with RSpec a lot lately (Blog post forthcoming, once I finish up one of the projects that has been using said testing framework).

Simon Harris from My hovercraft is full of eels describes a simple way to break up you tests into DRY, manageable chunks:

Ben Mabey shows you how to use Macros in RSpec, using Shouda. Macros are as old as the hills, but can be really handy to organise many tasks simply:

Michael Ivey reminds us why we should use tests. Not only are they a nice support net, but they encourage us to write better code. It’s like extreme programming without the other programmer:

Outside of the testing arena, a new version of Capistrano — possibly the coolest tool for Ruby — has been released. If you haven’t had a play with Capistrano yet, go and install it and try it out.

And finally for this week, if you have ever been perplexed about whether pieces of code belong in the Model, View or Controller, Starjuice has an article that may give you a clue or two, so you can ensure you code is separated properly:

No Reader comments

Get the latest in Front-end, once a week, for free.