Sha256: 7c3633b7769c993387e186f59aa5e93f8ee802b4f5eba532c20c7cb4f995f6ff

Contents?: true

Size: 800 Bytes

Versions: 3

Compression:

Stored size: 800 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper')

describe RDF::N3::Format do
  context "discovery" do
    {
      "n3" => RDF::Format.for(:n3),
      "etc/foaf.n3" => RDF::Format.for("etc/foaf.n3"),
      "etc/foaf.ttl" => RDF::Format.for("etc/foaf.ttl"),
      "foaf.n3" => RDF::Format.for(:file_name      => "foaf.n3"),
      "foaf.ttl" => RDF::Format.for(:file_name      => "foaf.ttl"),
      ".n3" => RDF::Format.for(:file_extension => "n3"),
      ".ttl" => RDF::Format.for(:file_extension => "ttl"),
      "text/n3" => RDF::Format.for(:content_type   => "text/n3"),
      "text/turtle" => RDF::Format.for(:content_type   => "text/turtle"),
    }.each_pair do |label, format|
      it "should discover '#{label}'" do
        format.should == RDF::N3::Format
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rdf-n3-0.2.1 spec/format_spec.rb
rdf-n3-0.0.3 spec/format_spec.rb
rdf-n3-0.0.2 spec/format_spec.rb