spec/uri_spec.rb in rdf-rdfxml-0.2.2.1 vs spec/uri_spec.rb in rdf-rdfxml-0.2.3

- old
+ new

@@ -97,9 +97,15 @@ it "should find with trailing word" do EXc.bar.qname.should == [:exc, :bar] end end + context "Invalid Formats" do + it "should detect invalid URI formats" do + lambda {Addressable::URI.parse("_:test")}.should raise_error(Addressable::URI::InvalidURIError) + end + end + context "vocab" do RDF::Vocabulary.each do |v| specify {v.foo.vocab.should == v} specify {v.foo.vocab.to_uri.to_s.should == v.to_uri.to_s} specify {v.to_s.should == v.to_uri.to_s} unless v == RDF