[rspec-users] How much test data to use in specs
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
> 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
> models like this again.
> Joseph Wilk
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