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, and imports each entry in the xml
feed into the database, skipping imports if they already exist in the
The thing is, I don’t know the best way to do this, as most examples
I’ve seen only refer to handing objects one at a time.
Could someone point me to a couple of code examples of what importer
specs should look like when written in rspec, or tell me roughly how I
should be approaching this ?
I’ve put the generic version of the code in this gist, to give an idea
of where I’m headed at the mo, but any feedback would be greatly
Thanks and have a good weekend,
I’m currently only checking my email at 9am, midday and at 4pm.
If you need a response from me urgently, please call or text my
mobile, or contact me via Skype (chris.d.adams).
5 Torrens Street