search for: rssparser

Displaying 2 results from an estimated 2 matches for "rssparser".

Did you mean: rsparser
2007 Feb 05
1
long jumping out of code in specs
...elling it to raise an exception which I catch in my spec. This way I don''t have to bother with either stubbing all the private methods called in my after_create hook, or making the mock I''m sending though this gauntlet respond properly to all the calls it gets. In my case calling RssParser.new is evidence enough that my code executed like it should. class SpecShortcut < Exception; end specify "should call the standard parsing methods" do RssParser.should_receive(:new).and_raise(SpecShortcut) lambda{do_action}.should_raise(SpecShortcut) end Feeling pain lik...
2008 Mar 20
6
Parsing multiple RSS & Atom feed formats
I''m working on a RSS aggregator, and I''ve based the parser on a script from this post; http://www.superwick.com/archives/2007/06/09/rss-feed-parsing-in-ruby-on-rails/ But, being the complete newbie, I''ve found that this parser only works for specifically formatted feeds. For example, some feeds will throw a ''nil text'' error. I know that I could make