Sha256: 4f4991dce8017644022058ecd4f35284fc509778c058ece70f2ce382a7c8394f

Contents?: true

Size: 1.25 KB

Versions: 15

Compression:

Stored size: 1.25 KB

Contents

require File.expand_path('../../unit_test_helper', __FILE__)

class GoogleVideoTest < Test::Unit::TestCase

  def test_transform
    result = auto_html("http://video.google.com/videoplay?docid=-7533500868750350977&ei=Xin8Sc-KBYeg2ALXkKymAQ&q=office+space&emb=1") { google_video }
    assert_equal '<object width="650" height="391"><param name="movie" value="http://video.google.com/googleplayer.swf?docid=-7533500868750350977&hl=en&fs=true"></param><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docid=-7533500868750350977" type="application/x-shockwave-flash" wmode="transparent" width="650" height="391"></embed></object>', result
  end

  def test_transform_with_options
    result = auto_html("http://video.google.com/videoplay?docid=7442132741322615356") { google_video(:width => 500, :height => 300) }
    assert_equal '<object width="500" height="300"><param name="movie" value="http://video.google.com/googleplayer.swf?docid=7442132741322615356&hl=en&fs=true"></param><param name="wmode" value="transparent"></param><embed src="http://video.google.com/googleplayer.swf?docid=7442132741322615356" type="application/x-shockwave-flash" wmode="transparent" width="500" height="300"></embed></object>', result
  end

end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
auto_html-1.5.1.1 test/unit/filters/google_video_test.rb
auto_html-1.6.0 test/unit/filters/google_video_test.rb
auto_html-1.5.3 test/unit/filters/google_video_test.rb
auto_html-1.5.2 test/unit/filters/google_video_test.rb
auto_html-1.5.1 test/unit/filters/google_video_test.rb
auto_html-1.5.0 test/unit/filters/google_video_test.rb
marcosinger-auto_html-1.3.6 test/unit/filters/google_video_test.rb
auto_html-1.4.2 test/unit/filters/google_video_test.rb
auto_html-1.4.1 test/unit/filters/google_video_test.rb
auto_html-1.4.0 test/unit/filters/google_video_test.rb
auto_html-1.3.7 test/unit/filters/google_video_test.rb
marcosinger-auto_html-1.3.5 test/unit/filters/google_video_test.rb
marcosinger-auto_html-1.3.4 test/unit/filters/google_video_test.rb
auto_html-1.3.6 test/unit/filters/google_video_test.rb
auto_html-1.3.5 test/unit/filters/google_video_test.rb