Sha256: 15a834a2d056e88156b613f1d05234ad8ca889b6388cb7fc1d1dbe88a1490bb8
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
require File.join(File.dirname(__FILE__), "/../spec_helper") describe RssParser do include RssParser it "should throw exception if rss_feed isn't provided" do lambda { parse_feed(nil) }.should raise_error('RSS feed missing') end it "should read the rss_feed_url and parse the items" do self.stub!(:open).and_return(rss_feed_url_content) items = parse_feed(test_conf) items.length.should == 1 items[0].title.content.should == "Pair Programming" items[0].link.href.should == "http://blog.jasonmeridth.com/2009/01/29/pair-programming.html" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twog-0.3.2 | spec/twog/rss_parser_spec.rb |