end
- def test_parse_mp4_video_url
- # And why not check one of the MP4 pages, too?
+ def test_parse_default_video_url
+ # Check one of the pages without alternatives.
btv = Bliptv.new(nil)
test_result = btv.send('parse_video_url', page_data)
assert_equal('http://blip.tv/file/get/Kantel-UbiUndPythonDemo816.flv', test_result)
end
+
+
+ def test_parse_ogg_video_url
+ # Make sure the OGG/Vorbis parsing works.
+
+ btv = Bliptv.new(nil)
+
+ page_data = nil
+
+ File.open('test/fixtures/bliptv/2788616.htm') do |f|
+ page_data = f.read
+ end
+
+ test_result = btv.send('parse_video_url', page_data)
+ assert_equal('http://blip.tv/file/get/Fosslc-StateOfPostGIS596.ogg', test_result)
+ end
+
end