X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=test%2Fvimeo_test.rb;h=203afae47a74ef91a33c6a04e66d39e37fe06834;hb=6434dafe2a7ddb4697c1c481546be42121a0ab24;hp=6578b8c10dc951e6740d0c1ae8bbfe25b966ceab;hpb=00f5e6f475d07afa862c8f33854d8ed52185ea81;p=dead%2Fwhatever-dl.git 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