]>
gitweb.michael.orlitzky.com - dead/whatever-dl.git/blob - test/infoq_remote_test.rb
7700d6bde970d4f6c7c2073ebcf160d1d3f36570
1 # Remote Infoq tests. Actually hit their website
2 # and attempt to parse the data returned.
5 require 'src/websites/infoq'
7 class InfoqRemoteTest
< Test
::Unit::TestCase
12 # We can't rely on the fixture here, because Infoq might
13 # change their page layout. Instead, check that we can actually
14 # find the base64 regex (containing the FLV URL).
15 page_data
= iq
.send('get_page_data', 'http://www.infoq.com/interviews/jim-weirich-discusses-rake')
17 test_result
= iq
.get_video_url(page_data
)
18 assert_equal('http://flv.thruhere.net/interviews/JimWeirich.flv', test_result
)