Sha256: 3cb72dbbcf662c8d264f4e651206fcd818dee678d41716b3541b7204db6588f6
Contents?: true
Size: 892 Bytes
Versions: 2
Compression:
Stored size: 892 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdf-rdfxml-0.2.2 | spec/format_spec.rb |
rdf-rdfxml-0.2.1 | spec/format_spec.rb |