Re: [rspec-users] Questions about testing a module method that randomly creates stuff from list.

2010-07-16 Thread David Chelimsky
On Jul 16, 2010, at 11:38 AM, Greg Ditrick wrote: > David Chelimsky wrote: >> On Jul 15, 2010, at 12:18 PM, Greg Ditrick wrote: >> >> >> This sounds like a long, procedural method. Can it be broken down any >> further (i.e. delegating more of its work to other methods)? > > Yes, it is.

Re: [rspec-users] Questions about testing a module method that randomly creates stuff from list.

2010-07-16 Thread Greg Ditrick
David Chelimsky wrote: > On Jul 15, 2010, at 12:18 PM, Greg Ditrick wrote: > > > This sounds like a long, procedural method. Can it be broken down any further > (i.e. delegating more of its work to other methods)? Yes, it is. The sub methods are the broken down part and not overridden s

Re: [rspec-users] Questions about testing a module method that randomly creates stuff from list.

2010-07-16 Thread David Chelimsky
On Jul 15, 2010, at 12:18 PM, Greg Ditrick wrote: > All, > > I have a method in a shared Module that shuffles data and then output other > data. The method is somewhat large (maybe 50 lines) and sometimes calls > other sub methods to help to complete the output which must meet a specific > c

[rspec-users] Questions about testing a module method that randomly creates stuff from list.

2010-07-15 Thread Greg Ditrick
All, I have a method in a shared Module that shuffles data and then output other data. The method is somewhat large (maybe 50 lines) and sometimes calls other sub methods to help to complete the output which must meet a specific criteria or it re-shuffles. My questions are: 1) How do I

[rspec-users] Questions about testing a module method that randomly creates stuff from list.

2010-07-15 Thread GregD
All, I have a method in a shared Module that shuffles data and then output other data. The method is somewhat large (maybe 50 lines) and sometimes calls other sub methods to help to complete the output which must meet a specific criteria or it re-shuffles. My questions are: 1) How do I cap