Ruby Hoedown 2008: flog << Test.new
  • Video is free for view
  • Video is available for download
View_video

 

This presentation will show how to transform a Ruby application without tests into a well-spec'd (via rspec) system with good test coverage. The presentation teaches how to write "characterization tests" for Ruby systems, how to convert characterization tests into normal specifications, and how to refactor and add new functionality to the improved system.

The code to be tested and refactored is the popular 'flog' tool written by seattle.rb's Ryan "zenspider" Davis, which was originally written without tests. The presentation will show the exact manner in which tests were added, how the code was refactored, and what improvements arose in the process.
Author: Rick Bradley

About Rick Bradley
Rick Bradley is a founder of Nashville-based Ruby consultancy OG Consulting and the progenitor of the Nashville Dynamic Languages Group (a thinly veiled excuse to get like-minded geeks together over beer and coffee). He has presented at RailsConfs 2006 & 2008, and to a circle of somewhat reluctant friends and acquaintances. He contributes regularly to open source software and is a co-author of such obviously earth-shattering nuggets as object_daddy, shatnr, and acts_as_range.



Tags: Confreaks, Ruby Hoedown 2008, Unit Testing, BDD, RSpec, refactoring, Ruby, Conferences

Level: any Date: August 21, 2008 Votes: 0 User: Dmytro Shteflyuk  Comments:
 
 

1 Response(s) to this entry

Subscribe to comments with RSS.