Sha256: 503b3c5d5c07691915f4e08cb9e902564c4801fb45de2d76f767519b56f7cbe2

Contents?: true

Size: 1.24 KB

Versions: 12

Compression:

Stored size: 1.24 KB

Contents

require File.dirname(__FILE__) + '/../unit_test_helper'

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

12 entries across 12 versions & 3 rubygems

Version Path
dejan-auto_html-1.1.0 test/unit/filters/google_video_test.rb
dejan-auto_html-1.1.1 test/unit/filters/google_video_test.rb
dejan-auto_html-1.1.2 test/unit/filters/google_video_test.rb
dejan-auto_html-1.2.0 test/unit/filters/google_video_test.rb
galetahub-auto_html-1.0.1 test/unit/filters/google_video_test.rb
auto_html-1.3.4 test/unit/filters/google_video_test.rb
auto_html-1.3.3 test/unit/filters/google_video_test.rb
auto_html-1.3.2 test/unit/filters/google_video_test.rb
auto_html-1.3.1 test/unit/filters/google_video_test.rb
auto_html-1.3.0 test/unit/filters/google_video_test.rb
auto_html-1.2.1 test/unit/filters/google_video_test.rb
auto_html-1.2.0 test/unit/filters/google_video_test.rb