Sha256: e74eddcaa47898b102b37f22e8e8d9edfa7c3ab970a20fba6217f5a433abd676
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
require File.expand_path('../../unit_test_helper', __FILE__) class TedTest < Test::Unit::TestCase def test_transform_url_with_www output = auto_html('http://www.ted.com/talks/amy_cuddy_your_body_language_shapes_who_you_are.html') { ted } assert_equal '<iframe width="640" height="360" frameborder="0" scrolling="no" src="http://embed.ted.com/talks/amy_cuddy_your_body_language_shapes_who_you_are.html"></iframe>', output end def test_transform_url_without_www output = auto_html('http://ted.com/talks/amy_cuddy_your_body_language_shapes_who_you_are.html') { ted } assert_equal '<iframe width="640" height="360" frameborder="0" scrolling="no" src="http://embed.ted.com/talks/amy_cuddy_your_body_language_shapes_who_you_are.html"></iframe>', output end def test_transform_url_with_options result = auto_html('http://www.ted.com/talks/amy_cuddy_your_body_language_shapes_who_you_are.html') { ted(:width => '50%', :height => '100', :scrolling => 'yes', :frameborder => 1, :allow_full_screen => true) } assert_equal '<iframe width="50%" height="100" frameborder="1" scrolling="yes" src="http://embed.ted.com/talks/amy_cuddy_your_body_language_shapes_who_you_are.html" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>', result end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
auto_html-1.6.4 | test/unit/filters/ted_test.rb |
auto_html-1.6.3 | test/unit/filters/ted_test.rb |
auto_html-1.6.2 | test/unit/filters/ted_test.rb |