[rspec-users] How much test data to use in specs

Joseph Wilk lists at ruby-forum.com
Fri Aug 29 04:51:49 EDT 2008

I started using a set of methods to deal with this problem from code in 
the RadiantCMS(http://radiantcms.org/) project.


I stopped using it after a while finding the tests did not read well. 
Your method improves on Radiant's which has tempted me to start testing 
models like this again.

Joseph Wilk

Nick Hoffman wrote:
> On 2008-08-28, at 08:31, David Chelimsky wrote:
>>>>   ...
>>> You can have a look at it at http://pastie.org/261175 . If you have  
>> Cheers,
>> David
> Thanks for taking a look and making some suggestions, David. Much
> appreciated. I've incorporated some of them into the method.
> The method's name was "describe_property_attributes" because it was
> being used to describe the Property (as in "real estate") model in my
> application. I've just finished abstracting it out so that it can now
> be used with any model class. If you're interested, I've pasted it at 
> http://pastie.org/261829

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list