1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-11 22:24:21 +01:00
fab-manager/test/integration/open_api/spaces_test.rb
Sylvain 4c3aa59bc0 (api) openAPI spaces endpoints
index spaces and show a space
2022-08-30 12:18:09 +02:00

22 lines
474 B
Ruby

# frozen_string_literal: true
require 'test_helper'
module OpenApi; end
class OpenApi::SpacesTest < ActionDispatch::IntegrationTest
def setup
@token = OpenAPI::Client.find_by(name: 'minitest').token
end
test 'list all spaces' do
get '/open_api/v1/spaces', headers: open_api_headers(@token)
assert_response :success
end
test 'get a space' do
get '/open_api/v1/spaces/1', headers: open_api_headers(@token)
assert_response :success
end
end