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 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/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users