Re: [rspec-users] Are there any example specs for content importers to learn from

2009-03-21 Thread Pat Maddox
That's basically what I do. http://gist.github.com/82981 shows one I wrote a couple days ago. I yield each object because there are like 400k records and I can't keep them in memory. Might be a little nicer to yield the params hash and let the caller build the object, but I don't need that flexi

[rspec-users] Are there any example specs for content importers to learn from

2009-03-21 Thread Chris Adams
Hi guys, This is my first post to the mailing list, so apologies if this kind of question comes up alot already. I've been working through the Peepcode screencasts on RSpec, and I'm trying to what I've been learning into practice to make an importer on a rails app that takes an xml feed,