-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathapplication_form_spec.rb
More file actions
31 lines (26 loc) · 1.06 KB
/
application_form_spec.rb
File metadata and controls
31 lines (26 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'spec_helper'
require 'json'
require 'date'
# Unit tests for OpenapiClient::ApplicationForm
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
RSpec.describe 'ApplicationForm' do
before do
configure_tests
end
describe 'test an instance of ApplicationForm' do
let(:api_instance) { OpenapiClient::GetApplicationFormApi.new(OpenapiClient::ApiClient.new(configuration)) }
it 'should get an instance of ApplicationForm' do
response = api_instance.execute('803451')
expect(response.data.type).to eq('applicationForm')
end
end
describe 'list application forms' do
let(:api_instance) { OpenapiClient::GetListApplicationFormsApi.new(OpenapiClient::ApiClient.new(configuration)) }
it 'should list an instance of ApplicationForm' do
opts = { query_params: {"page[limit]": 10, "page[offset]": 0, "filter[email]": 'jone.doe1@unit-finance.com'}}
response = api_instance.execute(opts)
expect(response.data[0].type).to eq('applicationForm')
end
end
end