On Fri, Aug 27, 2010 at 02:43, Zhenning Guan <[email protected]> wrote:
> in real world, when user deposit money into their bank, bank have money > and can check deposit record. so what would it be in rspec? I prefer two specs, because you are checking two unrelated things: bank account balance and transaction record. In general, I like to put each check in a separate spec, then combine checks if I see they are related. This is my style. -- J. B. (Joe) Rainsberger :: http://www.jbrains.ca :: http://blog.thecodewhisperer.com Diaspar Software Services :: http://www.diasparsoftware.com Author, JUnit Recipes 2005 Gordon Pask Award for contribution to Agile practice :: Agile 2010: Learn. Practice. Explore. _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
