spec/feedjira/parser/itunes_rss_spec.rb in feedjira-3.2.0 vs spec/feedjira/parser/itunes_rss_spec.rb in feedjira-3.2.1
- old
+ new
@@ -3,86 +3,86 @@
require "spec_helper"
module Feedjira
module Parser
describe "#will_parse?" do
- it "should return true for an itunes RSS feed" do
+ it "returns true for an itunes RSS feed" do
expect(ITunesRSS).to be_able_to_parse(sample_itunes_feed)
end
- it "should return true for an itunes RSS feed with spaces between attribute names, equals sign, and values" do
+ it "returns true for an itunes RSS feed with spaces between attribute names, equals sign, and values" do
expect(ITunesRSS).to be_able_to_parse(sample_itunes_feed_with_spaces)
end
- it "should return true for an itunes RSS feed with single-quoted attributes" do
+ it "returns true for an itunes RSS feed with single-quoted attributes" do
expect(ITunesRSS).to be_able_to_parse(sample_itunes_feed_with_single_quotes)
end
- it "should return fase for an atom feed" do
- expect(ITunesRSS).to_not be_able_to_parse(sample_atom_feed)
+ it "returns fase for an atom feed" do
+ expect(ITunesRSS).not_to be_able_to_parse(sample_atom_feed)
end
- it "should return false for an rss feedburner feed" do
- expect(ITunesRSS).to_not be_able_to_parse(sample_rss_feed_burner_feed)
+ it "returns false for an rss feedburner feed" do
+ expect(ITunesRSS).not_to be_able_to_parse(sample_rss_feed_burner_feed)
end
end
describe "parsing" do
- before(:each) do
+ before do
@feed = ITunesRSS.parse(sample_itunes_feed)
end
- it "should parse the ttl" do
+ it "parses the ttl" do
expect(@feed.ttl).to eq "60"
end
- it "should parse the last build date" do
+ it "parses the last build date" do
expect(@feed.last_built).to eq "Sat, 07 Sep 2002 09:42:31 GMT"
end
- it "should parse the subtitle" do
+ it "parses the subtitle" do
expect(@feed.itunes_subtitle).to eq "A show about everything"
end
- it "should parse the author" do
+ it "parses the author" do
expect(@feed.itunes_author).to eq "John Doe"
end
- it "should parse an owner" do
+ it "parses an owner" do
expect(@feed.itunes_owners.size).to eq 1
end
- it "should parse an image" do
+ it "parses an image" do
expect(@feed.itunes_image).to eq "http://example.com/podcasts/everything/AllAboutEverything.jpg"
end
- it "should parse the image url" do
+ it "parses the image url" do
expect(@feed.image.url).to eq "http://example.com/podcasts/everything/AllAboutEverything.jpg"
end
- it "should parse the image title" do
+ it "parses the image title" do
expect(@feed.image.title).to eq "All About Everything"
end
- it "should parse the image link" do
+ it "parses the image link" do
expect(@feed.image.link).to eq "http://www.example.com/podcasts/everything/index.html"
end
- it "should parse the image width" do
+ it "parses the image width" do
expect(@feed.image.width).to eq "88"
end
- it "should parse the image height" do
+ it "parses the image height" do
expect(@feed.image.height).to eq "31"
end
- it "should parse the image description" do
+ it "parses the image description" do
description = "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"
expect(@feed.image.description).to eq description
end
- it "should parse categories" do
+ it "parses categories" do
expect(@feed.itunes_categories).to eq [
"Technology",
"Gadgets",
"TV & Film",
"Arts",
@@ -96,27 +96,27 @@
%w[Arts Design],
%w[Arts Food]
]
end
- it "should parse the itunes type" do
+ it "parses the itunes type" do
expect(@feed.itunes_type).to eq "episodic"
end
- it "should parse the summary" do
+ it "parses the summary" do
summary = "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"
expect(@feed.itunes_summary).to eq summary
end
- it "should parse the complete tag" do
+ it "parses the complete tag" do
expect(@feed.itunes_complete).to eq "yes"
end
- it "should parse entries" do
+ it "parses entries" do
expect(@feed.entries.size).to eq 3
end
- it "should parse the new-feed-url" do
+ it "parses the new-feed-url" do
expect(@feed.itunes_new_feed_url).to eq "http://example.com/new.xml"
end
end
end
end