Linux Today: Linux News On Internet Time.

More on LinuxToday

LinuxJournal: How to Use ZenTest with Ruby

Sep 15, 2004, 13:00 (1 Talkback[s])
(Other stories by Pat Eyler)


Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers

"Refactoring and unit testing are a great pair of tools and should be a part of every programmer's workbench. Sadly, not every programmer knows how to use these tools. My first exposure to them came when I started using Ruby. Refactoring and unit testing are a big part of the landscape in the Ruby community.

"Some time ago, I translated the refactoring example from the first chapter of Martin Fowler's excellent book Refactoring from Java to Ruby. I felt this would be a great way to learn more about refactoring and brush up on my Ruby while I was at it. Recently, I decided to update the translation for Ruby 1.8.X. One of the things I needed to do was convert the old unit tests to work with Test::Unit, the new unit testing framework for Ruby. I wasn't looking forward to building a new test suite, however. Fortunately, help was available..."

Complete Story

Related Stories: