Sha256: 0c6ae138570843b232940b80db5432501fa48b511a23982bb96eddc842891a1e

Contents?: true

Size: 241 Bytes

Versions: 6

Compression:

Stored size: 241 Bytes

Contents

require 'spec_helper'

describe '/purl routing' do
  it "routes GET /purl/: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

6 entries across 6 versions & 1 rubygems

Version Path
curate-0.3.2 spec/routing/common_objects_routing_spec.rb
curate-0.3.1 spec/routing/common_objects_routing_spec.rb
curate-0.2.0 spec/routing/common_objects_routing_spec.rb
curate-0.1.3 spec/routing/common_objects_routing_spec.rb
curate-0.1.2 spec/routing/common_objects_routing_spec.rb
curate-0.1.1 spec/routing/common_objects_routing_spec.rb