Sha256: c8213e7301bd7fe9682452d70c2424302e8ef2b1f1779433ed77bd601082cf03
Contents?: true
Size: 1021 Bytes
Versions: 15
Compression:
Stored size: 1021 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Feedzirra::RDF do describe "#will_parse?" do it "should return true for an rdf feed" do Feedzirra::RDF.should be_able_to_parse(sample_rdf_feed) end it "should return false for an atom feed" do Feedzirra::RDF.should_not be_able_to_parse(sample_atom_feed) end end describe "parsing" do before(:each) do @feed = Feedzirra::RDF.parse(sample_rdf_feed) end it "should parse the title" do @feed.title.should == "HREF Considered Harmful" end it "should parse the url" do @feed.url.should == "http://www.avibryant.com/" end # rdf doesn't actually specify the feed_url. This should be set in the fetcher. it "should provide an accessor for the feed_url" do @feed.respond_to?(:feed_url).should == true @feed.respond_to?(:feed_url=).should == true end it "should parse entries" do @feed.entries.size.should == 10 end end end
Version data entries
15 entries across 15 versions & 5 rubygems