Sha256: d1928871c5208a455d16c008b91522dcaff04e40455e80b98e50cd20516060d5

Contents?: true

Size: 815 Bytes

Versions: 5

Compression:

Stored size: 815 Bytes

Contents

$:.unshift "."
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

5 entries across 5 versions & 1 rubygems

Version Path
rdf-n3-0.3.0 spec/format_spec.rb
rdf-n3-0.2.3.2 spec/format_spec.rb
rdf-n3-0.2.3.1 spec/format_spec.rb
rdf-n3-0.2.3 spec/format_spec.rb
rdf-n3-0.2.2 spec/format_spec.rb