Sha256: 43d7fba1831f4894f32af510f6b3a136949b3a762b46045db4406c5492c08bdf

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

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

class LiveLeakTest < Minitest::Test

  DIV_START = '<div class="video-container liveleak">'

  def test_transform
    result = auto_html('http://www.liveleak.com/view?i=BwNrmYRiX_o') { liveleak }
    assert_equal %Q|#{DIV_START}<iframe width="420" height="315" src="http://www.liveleak.com/ll_embed?f=BwNrmYRiX_o" frameborder="0" allowfullscreen></iframe></div>|, result
  end

  def test_transform2
    result = auto_html('http://www.liveleak.com/ll_embed?f=ef8304ab85e5') { liveleak }
    assert_equal %Q|#{DIV_START}<iframe width="420" height="315" src="http://www.liveleak.com/ll_embed?f=ef8304ab85e5" frameborder="0" allowfullscreen></iframe></div>|, result
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auto_html-whistlerbrk-2.0.0.pre test/unit/filters/liveleak_test.rb