summaryrefslogtreecommitdiff
path: root/spec/routing
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-20 20:11:50 -0700
committermo khan <mo@mokhan.ca>2014-02-20 20:11:50 -0700
commit8fa71f5e5200c91ab3916154a9b00e75c4064a2f (patch)
treed2d3e1c09c43798c56499086be4bf146c615d4e2 /spec/routing
parent8005a209624eec93ead4b372733cd8816d54a7c2 (diff)
add routes to companies/:company_id/licenses
Diffstat (limited to 'spec/routing')
-rw-r--r--spec/routing/company_licenses_routing_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/routing/company_licenses_routing_spec.rb b/spec/routing/company_licenses_routing_spec.rb
new file mode 100644
index 0000000..d6e5aa4
--- /dev/null
+++ b/spec/routing/company_licenses_routing_spec.rb
@@ -0,0 +1,8 @@
+require "spec_helper"
+
+describe 'v1/companies/:id/licenses' do
+ it "routes to the index action" do
+ company_id = SecureRandom.uuid
+ expect(get: "v1/companies/#{company_id}/licenses").to route_to(controller: 'v1/company_licenses', action: 'index', company_id: company_id)
+ end
+end