Sha256: 523a2514786957ac69afe9577244966d929496caa1287c4db4a0abdafeb7458e

Contents?: true

Size: 492 Bytes

Versions: 13

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe '/purl routing' do
  # Some implementers of Curate may be making the guarantee that this URL
  # is permanently addressable via a remote identifier (i.e. DOI, ARK)
  # So as not to raise the ire of both librarians and developers, don't
  # remove this spec nor the URL!
  it "routes GET /show/:id" do
    param_id = "12a34b56c"
    expect(get: "/show/#{param_id}").to(
      route_to(controller: "common_objects", action: "show", id: param_id)
    )
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curate-0.6.6 spec/routing/common_objects_routing_spec.rb
curate-0.6.5 spec/routing/common_objects_routing_spec.rb
curate-0.6.4 spec/routing/common_objects_routing_spec.rb
curate-0.6.3 spec/routing/common_objects_routing_spec.rb
curate-0.6.1 spec/routing/common_objects_routing_spec.rb
curate-0.6.0 spec/routing/common_objects_routing_spec.rb
curate-0.5.6 spec/routing/common_objects_routing_spec.rb
curate-0.5.5 spec/routing/common_objects_routing_spec.rb
curate-0.5.4 spec/routing/common_objects_routing_spec.rb
curate-0.5.2 spec/routing/common_objects_routing_spec.rb
curate-0.5.1 spec/routing/common_objects_routing_spec.rb
curate-0.5.0 spec/routing/common_objects_routing_spec.rb
curate-0.4.2 spec/routing/common_objects_routing_spec.rb