[rspec-users] Trouble testing a method with loop

Pat Maddox pergesu at gmail.com
Mon Feb 4 10:19:03 EST 2008


Extract the company creation to a method, so that that method only
builds one record at a time.  Test that it works properly.  Then you
can keep the test that you have, verifying that it creates the right
number of records.

Pat


More information about the rspec-users mailing list