[rspec-users] How much test data to use in specs
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.
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
> 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
Posted via http://www.ruby-forum.com/.
More information about the rspec-users