Remember Rcov?

Posted on December 16, 2009 by Oleg with 2 Comments

Rcov helps to identify code that is not being being hit by your tests (or maybe some functions left behind after refactoring). It’s very easy to get it running as well: [ccN] $ sudo gem install rcov [/ccN] Plug this rake task into /lib/tasks/rcov.rake [ccN_ruby] require ‘rcov/rcovtask’ namespace :rcov do desc ‘Measures test coverage using [...]

Harnessing Ruby Enumerable

Posted on December 8, 2009 by Scott Tadman with 2 Comments

You’re probably afraid to ask about some of the methods in the Ruby Enumerable mixin. Not only are there a whole bunch of them, 41 in Ruby 1.9 to be exact, but selecting the right one for the problem can be an exercise in frustration. Part of the problem is there’s no easy way to [...]