Sha256: c0087ba241045752a02df52a9b72001e03f63f8052b28a24d593dc8a361e4b5d
Contents?: true
Size: 1.68 KB
Versions: 3
Compression:
Stored size: 1.68 KB
Contents
require File.join(File.dirname(__FILE__), %w[.. .. spec_helper]) describe Feedzirra::Parser::ITunesRSS do describe "#will_parse?" do it "should return true for an itunes RSS feed" do Feedzirra::Parser::ITunesRSS.should be_able_to_parse(sample_itunes_feed) end it "should return fase for an atom feed" do Feedzirra::Parser::ITunesRSS.should_not be_able_to_parse(sample_atom_feed) end it "should return false for an rss feedburner feed" do Feedzirra::Parser::ITunesRSS.should_not be_able_to_parse(sample_rss_feed_burner_feed) end end describe "parsing" do before(:each) do @feed = Feedzirra::Parser::ITunesRSS.parse(sample_itunes_feed) end it "should parse the subtitle" do @feed.itunes_subtitle.should == "A show about everything" end it "should parse the author" do @feed.itunes_author.should == "John Doe" end it "should parse an owner" do @feed.itunes_owners.size.should == 1 end it "should parse an image" do @feed.itunes_image.should == "http://example.com/podcasts/everything/AllAboutEverything.jpg" end it "should parse categories" do @feed.itunes_categories.size == 3 @feed.itunes_categories[0] == "Technology" @feed.itunes_categories[1] == "Gadgets" @feed.itunes_categories[2] == "TV & Film" end it "should parse the summary" do @feed.itunes_summary.should == "All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our Podcast in the iTunes Music Store" end it "should parse entries" do @feed.entries.size.should == 3 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
feedzirra-0.4.0 | spec/feedzirra/parser/itunes_rss_spec.rb |
feedzirra-0.3.0 | spec/feedzirra/parser/itunes_rss_spec.rb |
feedzirra-0.2.2 | spec/feedzirra/parser/itunes_rss_spec.rb |