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