]>
gitweb.michael.orlitzky.com - dead/whatever-dl.git/blob - test/youporn_test.rb
1 # Unit tests for the Youporn class. Basically just checking
2 # the results of parse_video_url for now.
5 require 'src/websites/youporn'
7 class YoupornTest
< Test
::Unit::TestCase
9 def test_parse_video_url
14 File
.open('test/fixtures/youporn/page_data-65778.html') do |f
|
18 test_result
= yp
.send('parse_video_url', page_data
)
19 assert_equal('http://download.youporn.com/download/112911/flv/65778_moaning_mom_fucked_at_night.flv', test_result
)