Skip to content
This repository has been archived by the owner on Dec 21, 2017. It is now read-only.

Commit

Permalink
added test for XMLLiterals
Browse files Browse the repository at this point in the history
  • Loading branch information
tommorris committed Sep 29, 2008
1 parent 11a871a commit 7711c6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/literal_spec.rb
Expand Up @@ -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("<b>foo</b>", "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
Expand Down

0 comments on commit 7711c6f

Please sign in to comment.