mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
17 lines
356 B
Ruby
17 lines
356 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
|