[Catalyst] Model Testing Problems.

John Karr brainbuz at brainbuz.org
Mon Sep 5 23:56:17 GMT 2011


Thanks Eric  -- I had found and posted the solution when the mailing list server was behaving erratically and people may have missed the message.

When I set the problem aside and looked at it after a few days my mistake was obvious.  

http://lists.scsys.co.uk/pipermail/catalyst/2011-August/027503.html 


-----Original Message-----
From: Eden Cardim [mailto:edencardim at gmail.com] 
Sent: Monday, September 05, 2011 7:38 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Model Testing Problems.

......

use MyApp;
is( MyApp->model('DBI::Flock')->CountSheep(), 3 , 'CountSheep. There are 3 sheep in BoPeeps flock' ) ;

The above snippet should work, assuming the CountSheep() method is in place.



More information about the Catalyst mailing list