add navigation_spec
This commit is contained in:
parent
e8303a8b14
commit
71ae7051bc
2 changed files with 47 additions and 1 deletions
25
spec/requests/api/navigation_spec.rb
Normal file
25
spec/requests/api/navigation_spec.rb
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
require 'swagger_helper'
|
||||
|
||||
describe 'Navigation API', type: :request do
|
||||
include ApiHelper
|
||||
|
||||
path '/navigation' do
|
||||
get 'navigation' do
|
||||
tags 'General'
|
||||
produces 'application/json'
|
||||
let(:api_scopes) { ['config:user'] }
|
||||
|
||||
response '200', 'success' do
|
||||
schema type: :object, properties: {
|
||||
navigation: {
|
||||
'$ref' => '#/components/schemas/Navigation'
|
||||
}
|
||||
}
|
||||
|
||||
run_test!
|
||||
end
|
||||
|
||||
it_handles_invalid_token
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue