test/test_protocol.rb in atom-tools-0.9.3 vs test/test_protocol.rb in atom-tools-0.9.4
- old
+ new
@@ -19,11 +19,11 @@
end
class AtomProtocolTest < Test::Unit::TestCase
def test_introspection
doc = <<END
-<service xmlns="http://purl.org/atom/app#"
+<service xmlns="http://www.w3.org/2007/app"
xmlns:atom="http://www.w3.org/2005/Atom">
<workspace>
<atom:title>My Blog</atom:title>
<collection href="http://example.org/myblog/entries">
<atom:title>Entries</atom:title>
@@ -34,15 +34,12 @@
</collection>
</workspace>
</service>
END
- #http = FakeHTTP.new({ "http://example.com/service.xml" => service }, "application/atomserv+xml")
-
service = Atom::Service.new
service.parse doc
- #service = Atom::Service.new "http://example.com/service.xml", http
ws = service.workspaces.first
assert_equal "My Blog", ws.title.to_s
coll = ws.collections.first
@@ -82,10 +79,10 @@
nses = { "app" => Atom::PP_NS, "atom" => Atom::NS }
doc = REXML::Document.new(service.to_s)
- assert_equal "http://purl.org/atom/app#", doc.root.namespace
+ assert_equal "http://www.w3.org/2007/app", doc.root.namespace
ws = REXML::XPath.first( doc.root,
"/app:service/app:workspace",
nses )