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/trainings_test.rb
Sylvain 66ba8e565c Full test coverage of the OpenAPI
Also: fix related bugs
2021-06-28 09:50:37 +02:00

18 lines
357 B
Ruby

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