Sha256: ae4947c5d7ac8a5a0f1b58fddffe2bcc487ff0293a7d7b8a5a162b238aed80cf
Contents?: true
Size: 907 Bytes
Versions: 5
Compression:
Stored size: 907 Bytes
Contents
$:.unshift "." require File.join(File.dirname(__FILE__), 'spec_helper') describe RDF::RDFXML::Format do context "discovery" do { "rdf" => RDF::Format.for(:rdf), "rdfxml" => RDF::Format.for(:rdfxml), "etc/foaf.xml" => RDF::Format.for("etc/foaf.xml"), "etc/foaf.rdf" => RDF::Format.for("etc/foaf.rdf"), "foaf.xml" => RDF::Format.for(:file_name => "foaf.xml"), "foaf.rdf" => RDF::Format.for(:file_name => "foaf.xml"), ".xml" => RDF::Format.for(:file_extension => "xml"), ".rdf" => RDF::Format.for(:file_extension => "rdf"), "application/xml" => RDF::Format.for(:content_type => "application/xml"), "application/rdf+xml" => RDF::Format.for(:content_type => "application/rdf+xml"), }.each_pair do |label, format| it "should discover '#{label}'" do format.should == RDF::RDFXML::Format end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rdf-rdfxml-0.3.2 | spec/format_spec.rb |
rdf-rdfxml-0.3.1 | spec/format_spec.rb |
rdf-rdfxml-0.3.0 | spec/format_spec.rb |
rdf-rdfxml-0.2.3 | spec/format_spec.rb |
rdf-rdfxml-0.2.2.1 | spec/format_spec.rb |