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.29 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.28 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.27 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.26 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.25 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.24 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.23 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.22 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.21 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.20 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.19 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.18 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.17 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.16 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.15 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.14 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.13 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.12 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.11 spec/models/publish_my_data/resource_spec.rb
publish_my_data-0.0.10 spec/models/publish_my_data/resource_spec.rb