X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fwhatever-dl.git;a=blobdiff_plain;f=test%2Fvimeo_test.rb;h=203afae47a74ef91a33c6a04e66d39e37fe06834;hp=6578b8c10dc951e6740d0c1ae8bbfe25b966ceab;hb=83e06f83d8274cb32a406739839d56e759664b09;hpb=2c835ed7a247ed5639277bc9674b848722ad998d diff --git a/test/vimeo_test.rb b/test/vimeo_test.rb index 6578b8c..203afae 100644 --- a/test/vimeo_test.rb +++ b/test/vimeo_test.rb @@ -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