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

Nick Hoffman nick at deadorange.com
Fri Aug 29 10:03:43 EDT 2008

On 2008-08-29, at 04:51, Joseph Wilk wrote:
> I started using a set of methods to deal with this problem from code  
> in
> the RadiantCMS(http://radiantcms.org/) project.
> http://gist.github.com/7936
> 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.
> Thanks!
> --
> Joseph Wilk
> http://www.joesniff.co.uk

Thanks for the vote of confidence, Joseph! I have two other methods  
that go alongside #describe_model_attribute which you might find  
useful. I'm in the process of wrapping them up into a plugin. Until  
that's finished, I've pasted them at http://pastie.org/262508 and http://pastie.org/262509 


More information about the rspec-users mailing list