require File.dirname(__FILE__) + '/../unit_test_helper' class YouTubeJsApiTest < Test::Unit::TestCase def test_transform result = auto_html('http://www.youtube.com/watch?v=BwNrmYRiX_o') { youtube_js_api } assert_equal '', result end def test_transform2 result = auto_html('http://www.youtube.com/watch?v=3-ewi9saKg8&eurl=http%3A%2F%2Fvukajlija.com%2Fvideo%2Fklipovi%3Fstrana%3D6&feature=player_embedded') { youtube_js_api } assert_equal '', result end def test_transform3 result = auto_html('http://www.youtube.com/watch?v=Mw8KJ29qph0&feature=related') { youtube_js_api } assert_equal '', result end def test_transform_url_without_www result = auto_html('http://youtube.com/watch?v=BwNrmYRiX_o') { youtube_js_api } assert_equal '', result end def test_transform_with_options result = auto_html('http://www.youtube.com/watch?v=ZA1NoOOoaNw') { youtube_js_api(:width => 300, :height => 250) } assert_equal '', result end end