spec/rest/client_spec.rb in finapps-5.0.3 vs spec/rest/client_spec.rb in finapps-5.0.4
- old
+ new
@@ -1,11 +1,13 @@
# frozen_string_literal: true
RSpec.describe FinApps::REST::Client do
describe '#new' do
it 'raises for missing company_token' do
- expect { FinApps::REST::Client.new nil }.to raise_error(FinAppsCore::MissingArgumentsError)
+ expect { FinApps::REST::Client.new nil }.to raise_error(
+ FinAppsCore::MissingArgumentsError
+ )
end
end
context 'an instance of Client' do
subject { FinApps::REST::Client.new(:company_token) }
@@ -19,143 +21,199 @@
expect(first.object_id).to eq(second.object_id)
end
end
describe '#alert_definitions' do
- it { expect(subject.alert_definitions).to be_an_instance_of(FinApps::REST::AlertDefinitions) }
+ it do
+ expect(subject.alert_definitions).to be_an_instance_of(
+ FinApps::REST::AlertDefinitions
+ )
+ end
end
describe '#alert_occurrences' do
- it { expect(subject.alert_occurrences).to be_an_instance_of(FinApps::REST::AlertOccurrences) }
+ it do
+ expect(subject.alert_occurrences).to be_an_instance_of(
+ FinApps::REST::AlertOccurrences
+ )
+ end
end
describe '#version' do
- it { expect(subject.version).to be_an_instance_of(FinApps::REST::Version) }
+ it do
+ expect(subject.version).to be_an_instance_of(FinApps::REST::Version)
+ end
end
describe '#consumers' do
- it { expect(subject.consumers).to be_an_instance_of(FinApps::REST::Consumers) }
- end
-
- describe '#consumer_institution_refreshes' do
it do
- expect(subject.consumer_institution_refreshes).to be_an_instance_of FinApps::REST::ConsumerInstitutionRefreshes
+ expect(subject.consumers).to be_an_instance_of(FinApps::REST::Consumers)
end
end
- describe '#consumer_institution_refresh' do
+ describe '#plaid_webhooks' do
it do
- expect(subject.consumer_institution_refresh).to be_an_instance_of FinApps::REST::ConsumerInstitutionRefresh
+ expect(
+ subject.plaid_webhooks
+ ).to be_an_instance_of FinApps::REST::PlaidWebhooks
end
end
describe '#sessions' do
- it { expect(subject.sessions).to be_an_instance_of(FinApps::REST::Sessions) }
+ it do
+ expect(subject.sessions).to be_an_instance_of(FinApps::REST::Sessions)
+ end
end
describe '#order_assignments' do
- it { expect(subject.order_assignments).to be_an_instance_of(FinApps::REST::OrderAssignments) }
+ it do
+ expect(subject.order_assignments).to be_an_instance_of(
+ FinApps::REST::OrderAssignments
+ )
+ end
end
describe '#order_statuses' do
- it { expect(subject.order_notifications).to be_an_instance_of(FinApps::REST::OrderNotifications) }
+ it do
+ expect(subject.order_notifications).to be_an_instance_of(
+ FinApps::REST::OrderNotifications
+ )
+ end
end
describe '#order_statuses' do
- it { expect(subject.order_statuses).to be_an_instance_of(FinApps::REST::OrderStatuses) }
+ it do
+ expect(subject.order_statuses).to be_an_instance_of(
+ FinApps::REST::OrderStatuses
+ )
+ end
end
describe '#order_refreshes' do
- it { expect(subject.order_refreshes).to be_an_instance_of(FinApps::REST::OrderRefreshes) }
+ it do
+ expect(subject.order_refreshes).to be_an_instance_of(
+ FinApps::REST::OrderRefreshes
+ )
+ end
end
describe '#order_reports' do
- it { expect(subject.order_reports).to be_an_instance_of(FinApps::REST::OrderReports) }
+ it do
+ expect(subject.order_reports).to be_an_instance_of(
+ FinApps::REST::OrderReports
+ )
+ end
end
describe '#order_tokens' do
- it { expect(subject.order_tokens).to be_an_instance_of(FinApps::REST::OrderTokens) }
+ it do
+ expect(subject.order_tokens).to be_an_instance_of(
+ FinApps::REST::OrderTokens
+ )
+ end
end
describe '#orders' do
it { expect(subject.orders).to be_an_instance_of(FinApps::REST::Orders) }
end
- describe '#institutions' do
- it { expect(subject.institutions).to be_an_instance_of(FinApps::REST::Institutions) }
- end
-
- describe '#institutions_forms' do
- it { expect(subject.institutions_forms).to be_an_instance_of(FinApps::REST::InstitutionsForms) }
- end
-
- describe '#user_institutions_statuses' do
- it { expect(subject.user_institutions_statuses).to be_an_instance_of(FinApps::REST::UserInstitutionsStatuses) }
- end
-
- describe '#user_institutions' do
- it { expect(subject.user_institutions).to be_an_instance_of(FinApps::REST::UserInstitutions) }
- end
-
- describe '#user_institutions_forms' do
- it { expect(subject.user_institutions_forms).to be_an_instance_of(FinApps::REST::UserInstitutionsForms) }
- end
-
describe '#password_resets' do
- it { expect(subject.password_resets).to be_an_instance_of(FinApps::REST::PasswordResets) }
+ it do
+ expect(subject.password_resets).to be_an_instance_of(
+ FinApps::REST::PasswordResets
+ )
+ end
end
describe '#operators_password_resets' do
- it { expect(subject.operators_password_resets).to be_an_instance_of(FinApps::REST::OperatorsPasswordResets) }
+ it do
+ expect(subject.operators_password_resets).to be_an_instance_of(
+ FinApps::REST::OperatorsPasswordResets
+ )
+ end
end
describe '#operators' do
- it { expect(subject.operators).to be_an_instance_of(FinApps::REST::Operators) }
+ it do
+ expect(subject.operators).to be_an_instance_of(FinApps::REST::Operators)
+ end
end
describe '#products' do
- it { expect(subject.products).to be_an_instance_of(FinApps::REST::Products) }
+ it do
+ expect(subject.products).to be_an_instance_of(FinApps::REST::Products)
+ end
end
describe '#portfolios' do
- it { expect(subject.portfolios).to be_an_instance_of(FinApps::REST::Portfolios) }
+ it do
+ expect(subject.portfolios).to be_an_instance_of(
+ FinApps::REST::Portfolios
+ )
+ end
end
describe '#portfolios_alerts' do
- it { expect(subject.portfolios_alerts).to be_an_instance_of(FinApps::REST::PortfoliosAlerts) }
+ it do
+ expect(subject.portfolios_alerts).to be_an_instance_of(
+ FinApps::REST::PortfoliosAlerts
+ )
+ end
end
describe '#portfolios_available_consumers' do
- it {
- expect(subject.portfolios_available_consumers).to be_an_instance_of(FinApps::REST::PortfoliosAvailableConsumers)
- }
+ it do
+ expect(subject.portfolios_available_consumers).to be_an_instance_of(
+ FinApps::REST::PortfoliosAvailableConsumers
+ )
+ end
end
describe '#portfolios_consumers' do
- it { expect(subject.portfolios_consumers).to be_an_instance_of(FinApps::REST::PortfoliosConsumers) }
+ it do
+ expect(subject.portfolios_consumers).to be_an_instance_of(
+ FinApps::REST::PortfoliosConsumers
+ )
+ end
end
describe '#consumers_portfolios' do
- it { expect(subject.consumers_portfolios).to be_an_instance_of(FinApps::REST::ConsumersPortfolios) }
+ it do
+ expect(subject.consumers_portfolios).to be_an_instance_of(
+ FinApps::REST::ConsumersPortfolios
+ )
+ end
end
describe '#portfolio_reports' do
- it { expect(subject.portfolio_reports).to be_an_instance_of(FinApps::REST::PortfolioReports) }
+ it do
+ expect(subject.portfolio_reports).to be_an_instance_of(
+ FinApps::REST::PortfolioReports
+ )
+ end
end
- describe '#statements' do
- it { expect(subject.statements).to be_an_instance_of(FinApps::REST::Statements) }
- end
-
describe '#tenant_settings' do
- it { expect(subject.tenant_settings).to be_an_instance_of(FinApps::REST::TenantSettings) }
+ it do
+ expect(subject.tenant_settings).to be_an_instance_of(
+ FinApps::REST::TenantSettings
+ )
+ end
end
describe '#tenant_app_settings' do
- it { expect(subject.tenant_app_settings).to be_an_instance_of(FinApps::REST::TenantAppSettings) }
+ it do
+ expect(subject.tenant_app_settings).to be_an_instance_of(
+ FinApps::REST::TenantAppSettings
+ )
+ end
end
describe '#plaid_webhooks' do
- it { expect(subject.plaid_webhooks).to be_an_instance_of(FinApps::REST::PlaidWebhooks) }
+ it do
+ expect(subject.plaid_webhooks).to be_an_instance_of(
+ FinApps::REST::PlaidWebhooks
+ )
+ end
end
end
end