spec/rest/screenings_spec.rb in finapps-5.3.0 vs spec/rest/screenings_spec.rb in finapps-5.4.0

- old
+ new

@@ -74,9 +74,26 @@ expect(results).to have_key(:records) end end end + describe '#tenant_schemas' do + subject(:tenant_schemas) { described_class.new(client).tenant_schemas } + + it_behaves_like 'an API request' + it_behaves_like 'a successful request' + it 'performs a get and returns the response' do + expect(results[0]).to have_key(:external_url) + end + + it 'sends proper request' do + tenant_schemas + url = "#{versioned_api_path}/schemas" + + expect(WebMock).to have_requested(:get, url) + end + end + describe '#show' do subject(:show) { described_class.new(client).show(id) } context 'with valid id' do let(:id) { :valid_id }