summaryrefslogtreecommitdiff
blob: 9b06898d02098d49e7df715c1c853a04ede25e30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Remove tests depending on media_rss.xml, because it is not shipped in
the gem and the upstream VCS is not available.

http://rubyforge.org/tracker/index.php?func=detail&aid=28359&group_id=893&atid=3517

--- test/base/base_test.rb.orig	2010-07-08 21:16:48.625863508 +0200
+++ test/base/base_test.rb	2010-07-08 21:17:06.038612667 +0200
@@ -3,7 +3,6 @@
 	def setup
 		@rss09 = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/rss09.rdf')
 		@rss20 = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/rss20.xml')
-		@media_rss = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/media_rss.xml')
 		@atom = SimpleRSS.parse open(File.dirname(__FILE__) + '/../data/atom.xml')
 	end
 	
@@ -29,26 +28,6 @@
     assert_equal Time.parse("Fri Sep 09 02:52:31 PDT 2005"), @rss09.channel.dc_date
 	end
 
-	def test_media_rss
-		assert_equal 20, @media_rss.items.size
-		assert_equal "Uploads from herval", @media_rss.title
-		assert_equal "http://www.flickr.com/photos/herval/", @media_rss.channel.link
-		assert_equal "http://www.flickr.com/photos/herval/4671960608/", @media_rss.items.first.link
-		assert_equal "http://www.flickr.com/photos/herval/4671960608/", @media_rss.items.first[:link]
-		assert_equal "http://farm5.static.flickr.com/4040/4671960608_10cb945d5c_o.jpg", @media_rss.items.first.media_content_url
-		assert_equal "image/jpeg", @media_rss.items.first.media_content_type
-		assert_equal "3168", @media_rss.items.first.media_content_height
-		assert_equal "4752", @media_rss.items.first.media_content_width
-		assert_equal "Woof?", @media_rss.items.first.media_title
-		assert_equal "http://farm5.static.flickr.com/4040/4671960608_954d2297bc_s.jpg", @media_rss.items.first.media_thumbnail_url
-		assert_equal "75", @media_rss.items.first.media_thumbnail_height
-		assert_equal "75", @media_rss.items.first.media_thumbnail_width
-		assert_equal "herval", @media_rss.items.first.media_credit
-		assert_equal "photographer", @media_rss.items.first.media_credit_role
-		assert_equal "pets frodo", @media_rss.items.first.media_category
-		assert_equal "urn:flickr:tags", @media_rss.items.first.media_category_scheme
-	end
-	
 	def test_rss20
 		assert_equal 10, @rss20.items.size
 		assert_equal "Technoblog", @rss20.title
@@ -69,4 +48,4 @@
 	def test_bad_feed
 	  assert_raise(SimpleRSSError) { SimpleRSS.parse(open(File.dirname(__FILE__) + '/../data/not-rss.xml')) }
 	end
-end
\ No newline at end of file
+end