summaryrefslogtreecommitdiff
path: root/spec/routing/licenses_routing_spec.rb
blob: 4491c5b7b130d1640906c7c4d73d32c85f00cebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require "spec_helper"

describe 'v1/licenses' do
  it "can route to the index action" do
    expect({ get: 'v1/licenses' }).to route_to(controller: 'v1/licenses', action: 'index')
  end

  it "can route to the show action" do
    uuid = 'aa80f0ee-c6da-4b1d-bd80-3c50c93d083e'
    expect(get: "v1/licenses/#{uuid}").to route_to(controller: 'v1/licenses', action: 'show', id: uuid)
  end
end