]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - test/redtube_test.rb
Whitespace cleanup.
[dead/whatever-dl.git] / test / redtube_test.rb
index 9d6c709120fc0a3f46b5a948741629dffa2d1ee7..26ff8b28bb8ff97153155779b4a9554cc865cbb7 100644 (file)
@@ -17,7 +17,7 @@
 #
 
 require 'test/unit'
-require 'src/websites/redtube'
+require 'whatever-dl/websites/redtube'
 
 # Unit tests for the Redtube class. Basically just checking
 # the results of get_video_url for known ids.
@@ -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