Sha256: 00cdab314f3829a93e0b392a2b09de175b2f0e1a8cb784a2295681f5da3b26c8
Contents?: true
Size: 667 Bytes
Versions: 28
Compression:
Stored size: 667 Bytes
Contents
require 'spec_helper' module PublishMyData describe Resource do describe ".uri_from_host_and_doc_path" do context "with no format" do it "should return the uri formed from the host doc path" do Resource.uri_from_host_and_doc_path('example.com', 'hello/jello').should == 'http://example.com/id/hello/jello' end end context "with a format" do it "should return the uri formed from the host doc path, with the format stripped off" do Resource.uri_from_host_and_doc_path('example.com', 'hello/jello.rdf', 'rdf').should == 'http://example.com/id/hello/jello' end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems