]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - test/redtube_test.rb
Update the makefile and test code so that the tests run with Ruby 1.9 and pass generally.
[dead/whatever-dl.git] / test / redtube_test.rb
index 9d6c709120fc0a3f46b5a948741629dffa2d1ee7..39ee92a8c57c84d4bc654da40387f8491f40deca 100644 (file)
@@ -44,21 +44,5 @@ class RedtubeTest < Test::Unit::TestCase
     assert(!Redtube.owns_url?('http://redtube/123'))
     assert(!Redtube.owns_url?('www.redtube.com/abc'))
   end
-
   
-  def test_get_video_url
-    rt = Redtube.new('http://www.redtube.com/6807')
-    expected_result = 'http://dl.redtube.com/_videos_t4vn23s9jc5498tgj49icfj4678/0000006/X57OBH08G.flv'
-    actual_result = rt.get_video_url()
-    assert_equal(expected_result, actual_result)
-  end
-
-  
-  def test_get_video_filename
-    rt = Redtube.new('http://www.redtube.com/6807')
-    # I don't know where they get these filenames from, but whatever.
-    expected_result = 'X57OBH08G.flv'
-    actual_result = rt.get_video_filename()
-    assert_equal(expected_result, actual_result)
-  end
 end