mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
22 lines
469 B
Ruby
22 lines
469 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'test_helper'
|
||
|
|
||
|
module OpenApi; end
|
||
|
|
||
|
class OpenApi::PlansTest < ActionDispatch::IntegrationTest
|
||
|
def setup
|
||
|
@token = OpenAPI::Client.find_by(name: 'minitest').token
|
||
|
end
|
||
|
|
||
|
test 'list all plans' do
|
||
|
get '/open_api/v1/plans', headers: open_api_headers(@token)
|
||
|
assert_response :success
|
||
|
end
|
||
|
|
||
|
test 'get a plan' do
|
||
|
get '/open_api/v1/plans/1', headers: open_api_headers(@token)
|
||
|
assert_response :success
|
||
|
end
|
||
|
end
|