Sha256: cadd0b62d908e430cb239e27aec97c6913ac8407f86367e59ca27910b4391b0d

Contents?: true

Size: 515 Bytes

Versions: 13

Compression:

Stored size: 515 Bytes

Contents

require "test/unit"
require "atom/feed"

class TestXHTMLContentDivConformance < Test::Unit::TestCase
  def test_all
    feed = Atom::Feed.new("http://www.franklinmint.fm/2006/06/divtest.atom")
    feed.update!

    assert_equal "<b>test</b> content", feed.entries.first.content.html

    e = feed.entries.first.content.xml
    assert_equal "http://www.w3.org/1999/xhtml", e.first.namespace
    assert_equal "b", e.first.name
    assert_equal "test", e.first.text

    assert_equal " content", e.last.to_s
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
thehack-atom-tools-2.0.3 test/conformance/xhtmlcontentdiv.rb
atom-tools-2.0.5 test/conformance/xhtmlcontentdiv.rb
atom-tools-2.0.4 test/conformance/xhtmlcontentdiv.rb
atom-tools-2.0.0 test/conformance/xhtmlcontentdiv.rb
atom-tools-0.9.4 test/conformance/xhtmlcontentdiv.rb
atom-tools-0.9.1 test/conformance/xhtmlcontentdiv.rb
atom-tools-0.9.2 test/conformance/xhtmlcontentdiv.rb
atom-tools-0.9.0 test/conformance/xhtmlcontentdiv.rb
atom-tools-1.0.0 test/conformance/xhtmlcontentdiv.rb
atom-tools-2.0.3 test/conformance/xhtmlcontentdiv.rb
atom-tools-2.0.1 test/conformance/xhtmlcontentdiv.rb
atom-tools-0.9.3 test/conformance/xhtmlcontentdiv.rb
atom-tools-2.0.2 test/conformance/xhtmlcontentdiv.rb