diff options
| author | Robert | 2017-07-17 12:11:43 +0200 | 
|---|---|---|
| committer | Robert | 2017-07-17 13:13:29 +0200 | 
| commit | 4f4d43779ed3f9e6d1752dbe00d698bcc1a04966 (patch) | |
| tree | e53010bc5236edc31a958e25c3773abc3f992cfb /spec/routing/api | |
| parent | 03c2dcba29f1d6b4a8d22bd091e036fcf5600924 (diff) | |
| download | chouette-core-4f4d43779ed3f9e6d1752dbe00d698bcc1a04966.tar.bz2 | |
Refs: #3506@1.5h sketching out specs [amend me]
Diffstat (limited to 'spec/routing/api')
| -rw-r--r-- | spec/routing/api/v1/access_links_routes_spec.rb | 9 | ||||
| -rw-r--r-- | spec/routing/api/v1/import_routes_spec.rb | 10 | 
2 files changed, 19 insertions, 0 deletions
diff --git a/spec/routing/api/v1/access_links_routes_spec.rb b/spec/routing/api/v1/access_links_routes_spec.rb new file mode 100644 index 000000000..9164d3f05 --- /dev/null +++ b/spec/routing/api/v1/access_links_routes_spec.rb @@ -0,0 +1,9 @@ +RSpec.describe Api::V1::AccessLinksController, type: :controller do +   +  it 'routes to index' do +    expect( get: '/api/v1/access_links' ).to route_to( +      controller: 'api/v1/access_links', +      action: 'index' +    ) +  end +end diff --git a/spec/routing/api/v1/import_routes_spec.rb b/spec/routing/api/v1/import_routes_spec.rb new file mode 100644 index 000000000..7acc0e82d --- /dev/null +++ b/spec/routing/api/v1/import_routes_spec.rb @@ -0,0 +1,10 @@ +RSpec.describe Api::V1::ImportsController do +  describe "routing" do +    it {  +        expect(post: '/api/v1/imports').to route_to( +          controller: 'api/v1/imports', +          action: 'create' +        )  +    } +  end +end  | 
