From 7711c6f27344e87bd47afb3dd60ab10cbf13ef83 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Mon, 29 Sep 2008 19:58:16 +0100 Subject: [PATCH] added test for XMLLiterals --- spec/literal_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/literal_spec.rb b/spec/literal_spec.rb index 7cfed05..1bb97a2 100644 --- a/spec/literal_spec.rb +++ b/spec/literal_spec.rb @@ -106,6 +106,11 @@ other = Literal.build_from("foo") other.encoding.should == "http://www.w3.org/2001/XMLSchema#string" end + + it "should support XML Literals" do + xml = Literal.typed("foo", "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral") + xml.encoding.should == "http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral" + end # TODO: refactor based on new interface # describe "Languages" do