# Remote Youporn tests. Actually hit their website # and attempt to parse the data returned. require 'test/unit' require 'src/websites/youporn' class YoupornRemoteTest < Test::Unit::TestCase def test_get_page_data yp = Youporn.new() # We can't rely on the fixture here, because Youporn might # change their page layout. Instead, check that we can actually # find the FLV URL on this page. page_data = yp.send('get_page_data', 'http://www.youporn.com/watch/65778') test_result = yp.get_video_url(page_data) assert_equal('http://download.youporn.com/download/112911/flv/65778_moaning_mom_fucked_at_night.flv', test_result) end end