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

Version Path
publish_my_data-0.0.9 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.8 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.7 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.5 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.4 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.3 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.2 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.1 spec/models/publish_my_data/resource_spec.rb