]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - test/vimeo_test.rb
Made the output filename the responsibility of the website subclass.
[dead/whatever-dl.git] / test / vimeo_test.rb
index 6578b8c10dc951e6740d0c1ae8bbfe25b966ceab..203afae47a74ef91a33c6a04e66d39e37fe06834 100644 (file)
@@ -26,25 +26,25 @@ require 'src/websites/vimeo'
 class VimeoTest < Test::Unit::TestCase
 
   def test_parse_standard_video_id
-    v = Vimeo.new
+    v = Vimeo.new('http://www.vimeo.com/1561578')
     
     # First form, with the id at the end.
-    video_id = v.send('parse_video_id', 'http://www.vimeo.com/1561578')
+    video_id = v.send('parse_video_id')
     assert_equal('1561578', video_id)
   end
 
 
   def test_parse_swf_video_id
-    v = Vimeo.new
+    v = Vimeo.new('http://www.vimeo.com/moogaloop.swf?clip_id=1561578&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1')
     
     # Second, clip_id= form.
-    video_id = v.send('parse_video_id', 'http://www.vimeo.com/moogaloop.swf?clip_id=1561578&server=www.vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1')
+    video_id = v.send('parse_video_id')
     assert_equal('1561578', video_id)
   end
 
   
   def test_parse_request_signature
-    v = Vimeo.new
+    v = Vimeo.new(nil)
 
     details_data = nil
 
@@ -60,7 +60,7 @@ class VimeoTest < Test::Unit::TestCase
   
 
   def test_parse_request_signature_expires
-    v = Vimeo.new
+    v = Vimeo.new(nil)
 
     details_data = nil
 
@@ -76,7 +76,7 @@ class VimeoTest < Test::Unit::TestCase
 
 
   def test_parse_quality
-    v = Vimeo.new
+    v = Vimeo.new(nil)
 
     details_data = nil