search for: update_db

Displaying 1 result from an estimated 1 matches for "update_db".

2007 Feb 20
6
How to spec code with multiple (interacting) paths
Hi Code with a large number of different paths is probably the biggest problem I have right now. I''ve made a sample class that illustrates the simplest case of one parameter that takes two values: class DataStorer def initialize(logger, emailer, db_updater, do_update_db_step) @logger = logger; @emailer = emailer; @db_updater = db_updater @do_update_db_step = do_update_db_step end def store(data) @logger.log("I was told to store ''#{data}''") @emailer.send_email("Somebody stored '...